function SystemMessage::create

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/RulesAction/SystemMessage.php, line 73

Class

SystemMessage
Provides a 'Show a message on the site' action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

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