当前位置: 首页>>代码示例>>PHP>>正文


PHP ConfigEntityListBuilder::__construct方法代码示例

本文整理汇总了PHP中Drupal\Core\Config\Entity\ConfigEntityListBuilder::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ConfigEntityListBuilder::__construct方法的具体用法?PHP ConfigEntityListBuilder::__construct怎么用?PHP ConfigEntityListBuilder::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Drupal\Core\Config\Entity\ConfigEntityListBuilder的用法示例。


在下文中一共展示了ConfigEntityListBuilder::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructs a new instance.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $payment_method_configuration_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\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationManagerInterface $payment_method_configuration_manager
  *   The payment method configuration manager.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $payment_method_configuration_storage, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler, PaymentMethodConfigurationManagerInterface $payment_method_configuration_manager)
 {
     parent::__construct($entity_type, $payment_method_configuration_storage);
     $this->moduleHandler = $module_handler;
     $this->paymentMethodConfigurationManager = $payment_method_configuration_manager;
     $this->stringTranslation = $string_translation;
 }
开发者ID:nishantkumar155,项目名称:drupal8.crackle,代码行数:21,代码来源:PaymentMethodConfigurationListBuilder.php

示例2: __construct

 /**
  * Constructs a new FieldStorageConfigListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager
  *   The 'field type' plugin manager.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager, EntityTypeBundleInfoInterface $bundle_info_service)
 {
     parent::__construct($entity_type, $entity_manager->getStorage($entity_type->id()));
     $this->entityManager = $entity_manager;
     $this->bundles = $bundle_info_service->getAllBundleInfo();
     $this->fieldTypeManager = $field_type_manager;
     $this->fieldTypes = $this->fieldTypeManager->getDefinitions();
 }
开发者ID:eigentor,项目名称:tommiblog,代码行数:18,代码来源:FieldStorageConfigListBuilder.php

示例3: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage)
 {
     parent::__construct($entity_type, $storage);
     // Check if the entity type supports weighting.
     if ($this->entityType->hasKey('weight')) {
         $this->weightKey = $this->entityType->getKey('weight');
     }
 }
开发者ID:318io,项目名称:318-io,代码行数:11,代码来源:DraggableListBuilder.php

示例4: __construct

 /**
  * Constructs a new FieldStorageConfigListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager
  *   The 'field type' plugin manager.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager)
 {
     parent::__construct($entity_type, $entity_manager->getStorage($entity_type->id()));
     $this->entityManager = $entity_manager;
     $this->bundles = entity_get_bundles();
     $this->fieldTypeManager = $field_type_manager;
     $this->fieldTypes = $this->fieldTypeManager->getDefinitions();
 }
开发者ID:anatalsceo,项目名称:en-classe,代码行数:18,代码来源:FieldStorageConfigListBuilder.php

示例5: __construct

 /**
  * Constructs a new ViewListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage.
  *   The entity storage class.
  * @param \Drupal\Component\Plugin\PluginManagerInterface $display_manager
  *   The views display plugin manager to use.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, PluginManagerInterface $display_manager)
 {
     parent::__construct($entity_type, $storage);
     $this->displayManager = $display_manager;
     // This list builder uses client-side filters which requires all entities to
     // be listed, disable the pager.
     // @todo https://www.drupal.org/node/2536826 change the filtering to support
     //   a pager.
     $this->limit = FALSE;
 }
开发者ID:frankcr,项目名称:sftw8,代码行数:20,代码来源:ViewListBuilder.php

示例6: __construct

  /**
   * Constructs a new class instance.
   *
   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
   *   The entity type definition.
   * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
   *   The entity manager.
   */
  public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager) {
    parent::__construct($entity_type, $entity_manager->getStorage($entity_type->id()));

    $this->entityManager = $entity_manager;
  }
开发者ID:jkyto,项目名称:agolf,代码行数:13,代码来源:EntityQueueListBuilder.php

示例7: __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\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Session\AccountInterface $current_user
  *   The current user.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityManagerInterface $entity_manager, AccountInterface $current_user)
 {
     parent::__construct($entity_type, $storage);
     $this->entityManager = $entity_manager;
     $this->currentUser = $current_user;
 }
开发者ID:justincletus,项目名称:webdrupalpro,代码行数:18,代码来源:EventTypeListBuilder.php

示例8: __construct

 /**
  * Constructs a new BlockListBuilder 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\Block\BlockManagerInterface $block_manager
  *   The block manager.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, BlockManagerInterface $block_manager)
 {
     parent::__construct($entity_type, $storage);
     $this->blockManager = $block_manager;
 }
开发者ID:nstielau,项目名称:drops-8,代码行数:15,代码来源:BlockListBuilder.php

示例9: __construct

 /**
  * Constructs a new EntityDisplayModeListBuilder 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\EntityTypeInterface[] $entity_types
  *   List of all entity types.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, array $entity_types)
 {
     parent::__construct($entity_type, $storage);
     $this->entityTypes = $entity_types;
 }
开发者ID:Nikola-xiii,项目名称:d8intranet,代码行数:15,代码来源:EntityDisplayModeListBuilder.php

示例10: __construct

 /**
  * Constructs a new EncryptionProfileListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param ConfigFactoryInterface $config_factory
  *   The configuration factory.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ConfigFactoryInterface $config_factory)
 {
     parent::__construct($entity_type, $storage);
     $this->config = $config_factory->get('encrypt.settings');
 }
开发者ID:svendecabooter,项目名称:encrypt,代码行数:15,代码来源:EncryptionProfileListBuilder.php

示例11: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, KeyProviderPluginManager $key_provider_plugin_manager)
 {
     parent::__construct($entity_type, $storage);
     $this->keyProviderPluginManager = $key_provider_plugin_manager;
 }
开发者ID:rlhawk,项目名称:key,代码行数:8,代码来源:KeyListBuilder.php

示例12: __construct

 /**
  * Constructs a new ActionListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The action storage.
  * @param \Drupal\Core\Action\ActionManager $action_manager
  *   The action plugin manager.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ActionManager $action_manager)
 {
     parent::__construct($entity_type, $storage);
     $this->actionManager = $action_manager;
 }
开发者ID:ddrozdik,项目名称:dmaps,代码行数:15,代码来源:ActionListBuilder.php

示例13: __construct

 /**
  * Constructs a new instance.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type.
  * @param \Drupal\Core\Entity\EntityStorageInterface $entity_storage
  *   The entity storage.
  * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
  *   The string translator.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $entity_storage, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler)
 {
     parent::__construct($entity_type, $entity_storage);
     $this->moduleHandler = $module_handler;
     $this->stringTranslation = $string_translation;
 }
开发者ID:nishantkumar155,项目名称:drupal8.crackle,代码行数:18,代码来源:CurrencyLocaleListBuilder.php

示例14: __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\flags_languages\FullLanguageManagerInterface $fullLanguageManager
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, FullLanguageManagerInterface $fullLanguageManager)
 {
     parent::__construct($entity_type, $storage);
     $this->languageManager = $fullLanguageManager;
 }
开发者ID:globalbility,项目名称:flags,代码行数:14,代码来源:FlagMappingListBuilder.php

示例15: __construct

 /**
  * Constructs a new DateFormatListBuilder 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,代码来源:DateFormatListBuilder.php


注:本文中的Drupal\Core\Config\Entity\ConfigEntityListBuilder::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。