You are here

public static function ViewInclusion::create in Context 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/Condition/ViewInclusion.php \Drupal\context\Plugin\Condition\ViewInclusion::create()

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

array $configuration:

string $plugin_id:

mixed $plugin_definition:

Return value

static

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/Condition/ViewInclusion.php, line 50

Class

ViewInclusion
Provides a 'Views' condition.

Namespace

Drupal\context\Plugin\Condition

Code

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