/**
  * Constructs a new class 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
  *   The string translator.
  * @param \Drupal\Core\Entity\EntityStorageInterface $currency_storage
  *   The currency entity storage.
  * @param \Commercie\Currency\InputInterface $input
  *   The input parser.
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation, EntityStorageInterface $currency_storage, InputInterface $input)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->currencyStorage = $currency_storage;
     $this->input = $input;
     $this->stringTranslation = $string_translation;
 }
 /**
  * FilterImageResize constructor.
  * @param array $configuration
  * @param string $plugin_id
  * @param mixed $plugin_definition
  * @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository
  *   The entity Repository.
  * @param \Drupal\Core\Image\ImageFactory $image_factory
  *   Image Factory.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityRepositoryInterface $entity_repository, ImageFactory $image_factory, FileSystemInterface $file_system)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->entityRepository = $entity_repository;
     $this->imageFactory = $image_factory;
     $this->fileSystem = $file_system;
 }
 /**
  * Constructs a new class 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
  *   The string translator.
  * @param \Drupal\currency\Plugin\Currency\ExchangeRateProvider\ExchangeRateProviderInterface $exchange_rate_provider
  *   The exchange rate provider.
  * @param \Commercie\Currency\InputInterface $input
  *   The input parser.
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation, ExchangeRateProviderInterface $exchange_rate_provider, InputInterface $input)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->exchangeRateProvider = $exchange_rate_provider;
     $this->input = $input;
     $this->stringTranslation = $string_translation;
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition)
 {
     // Once per filter, log that a filter plugin was missing.
     if (!$this->logged) {
         $this->logged = TRUE;
         watchdog('filter', 'Missing filter plugin: %filter.', array('%filter' => $plugin_id), WATCHDOG_ALERT);
     }
     parent::__construct($configuration, $plugin_id, $plugin_definition);
 }
Esempio n. 5
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition)
 {
     // Once per filter, log that a filter plugin was missing.
     if (!$this->logged) {
         $this->logged = TRUE;
         \Drupal::logger('filter')->alert('Missing filter plugin: %filter.', array('%filter' => $plugin_id));
     }
     parent::__construct($configuration, $plugin_id, $plugin_definition);
 }
Esempio n. 6
0
 /**
  * Constructs a \Drupal\editor\Plugin\Filter\EditorFileReference 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
  *   An entity manager object.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager)
 {
     $this->entityManager = $entity_manager;
     parent::__construct($configuration, $plugin_id, $plugin_definition);
 }
Esempio n. 7
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->config = \Drupal::config('footnotes.settings');
     $this->configEditable = \Drupal::configFactory()->getEditable('footnotes.settings');
 }
Esempio n. 8
0
 /**
  * {@inheritdoc}
  */
 public function setConfiguration(array $configuration)
 {
     parent::setConfiguration($configuration);
     // Force restrictions to be calculated again.
     $this->restrictions = NULL;
 }
Esempio n. 9
0
 /**
  * Constructs a EntityEmbedFilter 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 service.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The Module Handler.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->setEntityManager($entity_manager);
     $this->setModuleHandler($module_handler);
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, EmbedInterface $ckeditor_media_embed)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->ckeditor_media_embed = $ckeditor_media_embed;
 }
Esempio n. 11
0
 /**
  * VideoEmbedWysiwyg constructor.
  *
  * @param array $configuration
  *   Plugin configuration.
  * @param string $plugin_id
  *   Plugin ID.
  * @param mixed $plugin_definition
  *   Plugin definition.
  * @param \Drupal\video_embed_field\ProviderManagerInterface $provider_manager
  *   The video provider manager.
  * @param \Drupal\Core\Render\RendererInterface $renderer
  *   The renderer.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, ProviderManagerInterface $provider_manager, RendererInterface $renderer)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->providerManager = $provider_manager;
     $this->renderer = $renderer;
 }
 /**
  * Default constructor
  *
  * @param mixed[] $configuration
  * @param string $pluginId
  * @param string $pluginDefinition
  * @param EntityLinkGenerator $linkGenerator
  */
 public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityLinkGenerator $linkGenerator)
 {
     parent::__construct($configuration, $pluginId, $pluginDefinition);
     $this->linkGenerator = $linkGenerator;
 }