/** * 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; }
/** * 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(); }
/** * {@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'); } }
/** * 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(); }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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'); }
/** * {@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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * Constructs a XmlSitemapListBuilder object. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * @param \Drupal\Core\Entity\EntityStorageInterface $storage * The entity storage. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler service. * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * The language manager service. */ public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ModuleHandlerInterface $module_handler, LanguageManagerInterface $language_manager) { parent::__construct($entity_type, $storage); $this->moduleHandler = $module_handler; $this->languageManager = $language_manager; }
/** * 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; }
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ProviderManager $providerManager, MethodPluginManager $methodManager) { parent::__construct($entity_type, $storage); $this->providerManager = $providerManager; $this->methodManager = $methodManager; }
/** * 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. */ public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, CurrentRouteMatch $current_route_match) { parent::__construct($entity_type, $storage); $this->currentRouteMatch = $current_route_match; }
/** * Constructs an IndexListBuilder 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\EntityStorageInterface $server_storage * The entity storage class for the 'search_api_server' entity type. */ public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityStorageInterface $server_storage) { parent::__construct($entity_type, $storage); $this->serverStorage = $server_storage; }
/** * 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\DateFormatter $date_formatter * The date formatter service. */ public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatter $date_formatter) { parent::__construct($entity_type, $storage); $this->dateFormatter = $date_formatter; }
/** * Constructs a new ImageStyleListBuilder object. * * @param EntityTypeInterface $entity_type * The entity type definition. * @param \Drupal\Core\Entity\EntityStorageInterface $image_style_storage * The image style entity storage class. * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator * The URL generator. */ public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $image_style_storage, UrlGeneratorInterface $url_generator) { parent::__construct($entity_type, $image_style_storage); $this->urlGenerator = $url_generator; }
/** * 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\Theme\ThemeManagerInterface $theme_manager * The theme manager. * @param \Drupal\Core\Form\FormBuilderInterface $form_builder * The form builder. */ public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ThemeManagerInterface $theme_manager, FormBuilderInterface $form_builder) { parent::__construct($entity_type, $storage); $this->themeManager = $theme_manager; $this->formBuilder = $form_builder; }
/** * Constructs a CropTypeListBuilder 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 service. * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory * The entity query factory. */ public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, UrlGeneratorInterface $url_generator, QueryFactory $query_factory) { parent::__construct($entity_type, $storage); $this->urlGenerator = $url_generator; $this->queryFactory = $query_factory; }