function FilterBase::__construct

Same name in other branches
  1. 9 core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::__construct()
  2. 8.9.x core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::__construct()
  3. 11.x core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::__construct()
4 calls to FilterBase::__construct()
EditorFileReference::__construct in core/modules/editor/src/Plugin/Filter/EditorFileReference.php
Constructs a \Drupal\editor\Plugin\Filter\EditorFileReference object.
FilterCaption::__construct in core/modules/filter/src/Plugin/Filter/FilterCaption.php
Constructs a new FilterCaption.
FilterNull::__construct in core/modules/filter/src/Plugin/Filter/FilterNull.php
MediaEmbed::__construct in core/modules/media/src/Plugin/Filter/MediaEmbed.php
Constructs a MediaEmbed object.
4 methods override FilterBase::__construct()
EditorFileReference::__construct in core/modules/editor/src/Plugin/Filter/EditorFileReference.php
Constructs a \Drupal\editor\Plugin\Filter\EditorFileReference object.
FilterCaption::__construct in core/modules/filter/src/Plugin/Filter/FilterCaption.php
Constructs a new FilterCaption.
FilterNull::__construct in core/modules/filter/src/Plugin/Filter/FilterNull.php
MediaEmbed::__construct in core/modules/media/src/Plugin/Filter/MediaEmbed.php
Constructs a MediaEmbed object.

File

core/modules/filter/src/Plugin/FilterBase.php, line 49

Class

FilterBase
Provides a base class for Filter plugins.

Namespace

Drupal\filter\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->provider = $this->pluginDefinition['provider'];
    $this->setConfiguration($configuration);
}

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