class MessageAction

Sends a message to the current user's screen.

Plugin annotation


@Action(
  id = "action_message_action",
  label = @Translation("Display a message to the user"),
  type = "system"
)

Hierarchy

Expanded class hierarchy of MessageAction

File

drupal/core/modules/action/lib/Drupal/action/Plugin/Action/MessageAction.php, line 26
Contains \Drupal\action\Plugin\Action\MessageAction.

Namespace

Drupal\action\Plugin\Action
View source

Members

Namesort descending Modifiers Type Description Overrides
ActionBase::executeMultiple public function Executes the plugin for an array of objects. Overrides ActionInterface::executeMultiple 2
ConfigurableActionBase::getConfiguration public function Returns this plugin's configuration. Overrides ConfigurableActionInterface::getConfiguration
ConfigurableActionBase::validate public function Form validation handler. Overrides ConfigurableActionInterface::validate 2
MessageAction::$token protected property
MessageAction::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginBase::create
MessageAction::execute public function Executes the plugin. Overrides ExecutableInterface::execute
MessageAction::form public function Form constructor. Overrides ConfigurableActionInterface::form
MessageAction::getDefaultConfiguration protected function Returns default configuration for this action. Overrides ConfigurableActionBase::getDefaultConfiguration
MessageAction::submit public function Form submission handler. Overrides ConfigurableActionInterface::submit
MessageAction::__construct public function Constructs a MessageAction object. Overrides ConfigurableActionBase::__construct
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition.
PluginBase::$pluginId protected property The plugin_id.
PluginBase::getPluginDefinition public function Returns the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition
PluginBase::getPluginId public function Returns the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId