You are here

public function AdsenseFilter::__construct in Google AdSense integration 8

Creates a new AdsenseAdBase instance.

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.

\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The block storage.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Config\ImmutableConfig $config: The configuration.

Overrides FilterBase::__construct

File

src/Plugin/Filter/AdsenseFilter.php, line 65

Class

AdsenseFilter
Provides a filter for AdSense input tags.

Namespace

Drupal\adsense\Plugin\Filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $entity_storage, RendererInterface $renderer, ImmutableConfig $config) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->blockStorage = $entity_storage;
  $this->renderer = $renderer;
  $this->config = $config;
}