You are here

public static function NoReferrerFilter::create in No Referrer 8

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: Container.

array $configuration: Plugin configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

Return value

static

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/Filter/NoReferrerFilter.php, line 64

Class

NoReferrerFilter
Provides a filter to apply the noreferrer attribute.

Namespace

Drupal\noreferrer\Plugin\Filter

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('config.factory'));
}