You are here

public function FontSelectionImageEffect::__construct in Image Effects 8.2

Same name and namespace in other branches
  1. 8.3 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/FontSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\FontSelectionImageEffect::__construct()
  2. 8 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/FontSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\FontSelectionImageEffect::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides ImageEffectBase::__construct

File

tests/modules/image_effects_module_test/src/Plugin/ImageEffect/FontSelectionImageEffect.php, line 33

Class

FontSelectionImageEffect
Image effect that relies on a font URI selected via the font selector plugin.

Namespace

Drupal\image_effects_module_test\Plugin\ImageEffect

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, ImageEffectsFontSelectorPluginInterface $font_selector_plugin) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
  $this->fontSelector = $font_selector_plugin;
}