function BasicExample::create

Same name in other branches
  1. 4.0.x modules/action_example/src/Plugin/Action/BasicExample.php \Drupal\action_example\Plugin\Action\BasicExample::create()

Overrides ContainerFactoryPluginInterface::create

File

modules/action_example/src/Plugin/Action/BasicExample.php, line 43

Class

BasicExample
A basic example action that does nothing.

Namespace

Drupal\action_example\Plugin\Action

Code

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