public function MessageAction::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/action/src/Plugin/Action/MessageAction.php \Drupal\action\Plugin\Action\MessageAction::__construct()
Constructs a MessageAction object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Utility\Token: The token service.
\Drupal\Core\Utility\Token $token: The token replacement service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
Overrides ConfigurableActionBase::__construct
File
- core/
modules/ action/ src/ Plugin/ Action/ MessageAction.php, line 58 - Contains \Drupal\action\Plugin\Action\MessageAction.
Class
- MessageAction
- Sends a message to the current user's screen.
Namespace
Drupal\action\Plugin\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Token $token, RendererInterface $renderer) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->token = $token;
$this->renderer = $renderer;
}