You are here

public function ApiTokensFilter::__construct in API Tokens 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Filter/ApiTokensFilter.php \Drupal\api_tokens\Plugin\Filter\ApiTokensFilter::__construct()

Constructs an ApiTokens 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.

\Drupal\api_tokens\ApiTokenManagerInterface $api_token_manager: The API token manager.

Overrides FilterBase::__construct

File

src/Plugin/Filter/ApiTokensFilter.php, line 51

Class

ApiTokensFilter
Provides the API tokens filter.

Namespace

Drupal\api_tokens\Plugin\Filter

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ApiTokenManagerInterface $api_token_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->apiTokenManager = $api_token_manager;
}