/** * 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 * The string translator. * @param \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorManagerInterface $plugin_selector_manager * The plugin selector manager. * @param \Drupal\plugin\PluginType\PluginTypeInterface $payment_status_type * The payment status type. */ public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation, PluginSelectorManagerInterface $plugin_selector_manager, PluginTypeInterface $payment_status_type) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->pluginSelectorManager = $plugin_selector_manager; $this->paymentStatusType = $payment_status_type; $this->stringTranslation = $string_translation; }
/** * Constructs a EmailAction 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\Utility\Token $token * The token service. * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. * @param \Psr\Log\LoggerInterface $logger * A logger instance. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token, EntityManagerInterface $entity_manager, LoggerInterface $logger) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->token = $token; $this->storage = $entity_manager->getStorage('user'); $this->logger = $logger; }
/** * Constructs a RegistrantBasicEmail 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. * @param \Drupal\rng\EventManagerInterface $event_manager * The RNG event manager. * @param \Drupal\courier\Service\CourierManagerInterface $courier_manager * The courier manager. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager, EventManagerInterface $event_manager, CourierManagerInterface $courier_manager) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->entityManager = $entity_manager; $this->eventManager = $event_manager; $this->courierManager = $courier_manager; }
/** * Constructs a new DeleteNode 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 \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher * The tempstore factory. * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator * The url generator service. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $dispatcher, UrlGeneratorInterface $url_generator) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->dispatcher = $dispatcher; $this->urlGenerator = $url_generator; }
/** * 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 * The string translator. */ public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->stringTranslation = $string_translation; }
/** * Constructs a new AssignOwnerNode action. * * @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\Database\Connection $connection * The database connection. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $connection) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->connection = $connection; }
/** * {@inheritdoc} */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeInterface $entity_type) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->entityType = $entity_type; }
/** * Constructs a EmailAction 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\Utility\Token $token * The token service. * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. * @param \Psr\Log\LoggerInterface $logger * A logger instance. * @param \Drupal\Core\Mail\MailManagerInterface * The mail manager. * @param \Drupal\Core\Language\LanguageManagerInterface * The language manager. * @param \Egulias\EmailValidator\EmailValidator $email_validator * The email validator. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token, EntityManagerInterface $entity_manager, LoggerInterface $logger, MailManagerInterface $mail_manager, LanguageManagerInterface $language_manager, EmailValidator $email_validator) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->token = $token; $this->storage = $entity_manager->getStorage('user'); $this->logger = $logger; $this->mailManager = $mail_manager; $this->languageManager = $language_manager; $this->emailValidator = $email_validator; }
/** * Constructs a MessageAction 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\Utility\Token * The token service. * @param \Drupal\Core\Utility\Token $token * The token replacement service. * @param \Drupal\Core\Render\RendererInterface $renderer * The renderer. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token, RendererInterface $renderer) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->token = $token; $this->renderer = $renderer; }
/** * Constructs a MessageAction object. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->token = $token; }
/** * Constructs a new DeleteNode 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 \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher * The tempstore factory. * @param \Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler * The unrouted URL assembler service. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $dispatcher, UnroutedUrlAssemblerInterface $url_assembler) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->dispatcher = $dispatcher; $this->unroutedUrlAssembler = $url_assembler; }
/** * Constructs a UnpublishByKeywordComment 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\EntityViewBuilderInterface $comment_view_builder * The comment entity builder handler. * @param \Drupal\Core\Render\RendererInterface $renderer * The renderer. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityViewBuilderInterface $comment_view_builder, RendererInterface $renderer) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->viewBuilder = $comment_view_builder; $this->renderer = $renderer; }