/** * Constructs a new instance. * * @param mixed[] $configuration * The plugin configuration. * @param string $plugin_id * The plugin ID. * @param mixed[] $plugin_definition * The plugin definition. * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * The language manager. * @param \Drupal\Core\Entity\EntityStorageInterface $target_entity_storage * The target entity storage. * @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info * The entity type bundle info. * @param \Drupal\Core\Entity\EntityTypeInterface $target_entity_type * The target entity type. */ public function __construct(array $configuration, $plugin_id, array $plugin_definition, LanguageManagerInterface $language_manager, EntityStorageInterface $target_entity_storage, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityTypeInterface $target_entity_type) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->entityTypeBundleInfo = $entity_type_bundle_info; $this->targetEntityStorage = $target_entity_storage; $this->targetEntityType = $target_entity_type; $this->languageManager = $language_manager; }
/** * Constructs a new CountryCode object. * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \CommerceGuys\Addressing\Repository\CountryRepositoryInterface $country_repository * The country repository. * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager * The entity type manager. * @param \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager * The entity field manager. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, CountryRepositoryInterface $country_repository, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->countryRepository = $country_repository; $this->entityTypeManager = $entity_type_manager; $this->entityFieldManager = $entity_field_manager; }
/** * Constructs a new instance. * * @param mixed[] $configuration * The plugin configuration. * @param string $plugin_id * The plugin ID. * @param mixed[] $plugin_definition * The plugin definition. * @param \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorManagerInterface $plugin_selector_manager * The plugin selector manager. * @param \Drupal\plugin\PluginType\PluginTypeInterface $entity_reference_selection_plugin_type * The entity reference selection plugin type. * @param string $target_entity_type_id * The ID of the entity reference's target entity type. */ public function __construct(array $configuration, $plugin_id, array $plugin_definition, PluginSelectorManagerInterface $plugin_selector_manager, PluginTypeInterface $entity_reference_selection_plugin_type, $target_entity_type_id) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->entityReferenceSelectionPluginType = $entity_reference_selection_plugin_type; $this->pluginSelectorManager = $plugin_selector_manager; $this->targetEntityTypeId = $target_entity_type_id; }
/** * Constructs a new instance. * * @param mixed[] $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation * @param \Drupal\payment\Plugin\Payment\Method\PaymentMethodManagerInterface */ public function __construct($configuration, $plugin_id, $plugin_definition, TranslationInterface $string_translation, PaymentMethodManagerInterface $payment_method_manager) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->paymentMethodManager = $payment_method_manager; $this->stringTranslation = $string_translation; }
/** * Constructs a new LanguageFilter instance. * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * The language manager. */ public function __construct($configuration, $plugin_id, $plugin_definition, LanguageManagerInterface $language_manager) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->languageManager = $language_manager; }
/** * Constructs a new instance. * * @param mixed[] $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\currency\FormHelperInterface * The form helper. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, FormHelperInterface $form_helper) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->formHelper = $form_helper; }
/** * @inheritDoc */ public function __construct(array $configuration, $plugin_id, $plugin_definition, SqlContentEntityStorage $category_storage) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->categoryStorage = $category_storage; }
/** * Constructs a Bundle object. * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->entityManager = $entity_manager; }
/** * Constructs a Bundle object. * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager, EntityTypeBundleInfoInterface $bundle_info_service) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->entityManager = $entity_manager; $this->bundleInfoService = $bundle_info_service; }