function FilterCaption::__construct

Same name in other branches
  1. 9 core/modules/filter/src/Plugin/Filter/FilterCaption.php \Drupal\filter\Plugin\Filter\FilterCaption::__construct()
  2. 10 core/modules/filter/src/Plugin/Filter/FilterCaption.php \Drupal\filter\Plugin\Filter\FilterCaption::__construct()
  3. 11.x core/modules/filter/src/Plugin/Filter/FilterCaption.php \Drupal\filter\Plugin\Filter\FilterCaption::__construct()

Constructs a new FilterCaption.

Parameters

array $configuration: Configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Definition.

\Drupal\filter\FilterPluginManager $filter_manager: Filter plugin manager.

Overrides FilterBase::__construct

File

core/modules/filter/src/Plugin/Filter/FilterCaption.php, line 46

Class

FilterCaption
Provides a filter to caption elements.

Namespace

Drupal\filter\Plugin\Filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FilterPluginManager $filter_manager = NULL) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->filterManager = $filter_manager ?: \Drupal::service('plugin.manager.filter');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.