You are here

public function BasicExample::execute in Examples for Developers 3.x

Executes the plugin.

Overrides ExecutableInterface::execute

File

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

Class

BasicExample
A basic example action that does nothing.

Namespace

Drupal\action_example\Plugin\Action

Code

public function execute($object = NULL) {
  $this
    ->messenger()
    ->addMessage($this
    ->t('action_example_basic_action fired'));
}