當前位置: 首頁>>代碼示例>>PHP>>正文


PHP EntityListBuilder::__construct方法代碼示例

本文整理匯總了PHP中Drupal\Core\Entity\EntityListBuilder::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP EntityListBuilder::__construct方法的具體用法?PHP EntityListBuilder::__construct怎麽用?PHP EntityListBuilder::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Drupal\Core\Entity\EntityListBuilder的用法示例。


在下文中一共展示了EntityListBuilder::__construct方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Constructs a new UserListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
  *   The entity query factory.
  * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
  *   The date formatter service.
  * @param \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination
  *   The redirect destination service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, QueryFactory $query_factory, DateFormatterInterface $date_formatter, RedirectDestinationInterface $redirect_destination)
 {
     parent::__construct($entity_type, $storage);
     $this->queryFactory = $query_factory;
     $this->dateFormatter = $date_formatter;
     $this->redirectDestination = $redirect_destination;
 }
開發者ID:ddrozdik,項目名稱:dmaps,代碼行數:21,代碼來源:UserListBuilder.php

示例2: __construct

 /**
  * Constructs a new instance.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $payment_storage
  *   The payment storage.
  * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
  *   The string translator.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler.
  * @param \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination
  *   The redirect destination.
  * @param \Drupal\Core\DateTime\DateFormatter $date_formatter
  *   The date formatter.
  * @param \Drupal\Core\Entity\EntityStorageInterface $currency_storage
  *   The currency storage.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $payment_storage, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler, RedirectDestinationInterface $redirect_destination, DateFormatter $date_formatter, EntityStorageInterface $currency_storage)
 {
     parent::__construct($entity_type, $payment_storage);
     $this->currencyStorage = $currency_storage;
     $this->dateFormatter = $date_formatter;
     $this->moduleHandler = $module_handler;
     $this->redirectDestination = $redirect_destination;
     $this->stringTranslation = $string_translation;
 }
開發者ID:nishantkumar155,項目名稱:drupal8.crackle,代碼行數:27,代碼來源:PaymentListBuilder.php

示例3: __construct

 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage)
 {
     parent::__construct($entity_type, $storage);
     $type = $entity_type->id();
     $entity_info = \Drupal\myeck\MyeckConfig::getForListBuilder($type);
     $this->entity_label = empty($entity_info['entity_label']) ? '' : $entity_info['entity_label'];
     $this->entity_id = empty($entity_info['entity_id']) ? 'id' : $entity_info['entity_id'];
     $this->show_fields = array($this->entity_id => $type . ' ID');
     $this->show_fields += empty($entity_info['show_fields']) ? array() : $entity_info['show_fields'];
 }
開發者ID:alexawg2015,項目名稱:drupal-8,代碼行數:10,代碼來源:MyeckListBuilder.php

示例4: __construct

 /**
  * @inheritDoc
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatterInterface $date_formatter)
 {
     parent::__construct($entity_type, $storage);
     $this->dateFormatter = $date_formatter;
 }
開發者ID:bonrita,項目名稱:moodle,代碼行數:8,代碼來源:CourseListBuilder.php

示例5: __construct

 /**
  * Constructs a new UserListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
  *   The entity query factory.
  * @param \Drupal\Core\Datetime\Date $date_formatter
  *   The date formatter service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, QueryFactory $query_factory, DateFormatter $date_formatter)
 {
     parent::__construct($entity_type, $storage);
     $this->queryFactory = $query_factory;
     $this->dateFormatter = $date_formatter;
 }
開發者ID:shumer,項目名稱:blog,代碼行數:18,代碼來源:UserListBuilder.php

示例6: __construct

 /**
  * Constructs a new EntityListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\scheduled_updates\UpdateUtils $updateUtils
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, UpdateUtils $updateUtils) {
   parent::__construct($entity_type, $storage);
   $this->updateUtils = $updateUtils;
 }
開發者ID:joebachana,項目名稱:usatne,代碼行數:13,代碼來源:ScheduledUpdateListBuilder.php

示例7: __construct

 /**
  * Constructs a new OrderListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
  *   The entity type manager.
  * @param \Drupal\Core\Datetime\DateFormatter $date_formatter
  *   The date service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, DateFormatter $date_formatter)
 {
     parent::__construct($entity_type, $entity_type_manager->getStorage($entity_type->id()));
     $this->dateFormatter = $date_formatter;
 }
開發者ID:alexburrows,項目名稱:cream-2.x,代碼行數:15,代碼來源:OrderListBuilder.php

示例8: __construct

 /**
  * Constructs a new UserListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
  *   The entity query factory.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, QueryFactory $query_factory)
 {
     parent::__construct($entity_type, $storage);
     $this->queryFactory = $query_factory;
 }
開發者ID:alnutile,項目名稱:drunatra,代碼行數:15,代碼來源:UserListBuilder.php

示例9: __construct

 /**
  * Constructs a new RegistrationListBuilder object.
  *
  * {@inheritdoc}
  *
  * @param \Drupal\rng\EventManagerInterface $event_manager
  *   The RNG event manager.
  * @param \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination
  *   The redirect destination service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EventManagerInterface $event_manager, RedirectDestinationInterface $redirect_destination)
 {
     parent::__construct($entity_type, $storage);
     $this->eventManager = $event_manager;
     $this->redirectDestination = $redirect_destination;
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:16,代碼來源:RuleListBuilder.php

示例10: __construct

 /**
  * Constructs a new NodeListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage)
 {
     parent::__construct($entity_type, $storage);
 }
開發者ID:jasonruyle,項目名稱:crm_core,代碼行數:12,代碼來源:ActivityListBuilder.php

示例11: __construct

 /**
  * Constructs a new RegistrationListBuilder object.
  *
  * {@inheritdoc}
  *
  * @param \Drupal\rng\EventManagerInterface $event_manager
  *   The RNG event manager.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EventManagerInterface $event_manager)
 {
     parent::__construct($entity_type, $storage);
     $this->eventManager = $event_manager;
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:13,代碼來源:RegistrationListBuilder.php

示例12: __construct

 /**
  * Constructs a new ContactListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
  *   The url generator.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, UrlGeneratorInterface $url_generator)
 {
     parent::__construct($entity_type, $storage);
     $this->urlGenerator = $url_generator;
 }
開發者ID:dropdog,項目名稱:play,代碼行數:15,代碼來源:ContactListBuilder.php

示例13: __construct

 /**
  * Constructs a new EntityListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param EntityLayoutService $entityLayoutService
  *   The entity layout service class.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityLayoutService $entityLayoutService)
 {
     parent::__construct($entity_type, $storage);
     $this->entityLayoutService = $entityLayoutService;
 }
開發者ID:oddhill,項目名稱:entity_layout,代碼行數:15,代碼來源:EntityLayoutListBuilder.php

示例14: __construct

 /**
  * Constructs a new NodeListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Datetime\Date $date_service
  *   The date service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, Date $date_service)
 {
     parent::__construct($entity_type, $storage);
     $this->dateService = $date_service;
 }
開發者ID:alnutile,項目名稱:drunatra,代碼行數:15,代碼來源:NodeListBuilder.php


注:本文中的Drupal\Core\Entity\EntityListBuilder::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。