You are here

public static function TokensFilterTrait::create in Tokens in Views Filter Criteria 8

File

src/TokensFilterTrait.php, line 23

Class

TokensFilterTrait
Filter trait to use for filter plugins.

Namespace

Drupal\token_views_filter

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  $instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
  $instance->token = $container
    ->get('token');
  return $instance;
}