public static function MessageAction::create in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Action/Plugin/Action/MessageAction.php \Drupal\Core\Action\Plugin\Action\MessageAction::create()
- 9 core/lib/Drupal/Core/Action/Plugin/Action/MessageAction.php \Drupal\Core\Action\Plugin\Action\MessageAction::create()
File
- core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ MessageAction.php, line 74
Class
- MessageAction
- Sends a message to the current user's screen.
Namespace
Drupal\Core\Action\Plugin\ActionCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('token'), $container
->get('renderer'), $container
->get('messenger'));
}