public function ViewsBulkOperationsSimpleTestAction::execute in Views Bulk Operations (VBO) 8.3
Same name and namespace in other branches
- 8 tests/views_bulk_operations_test/src/Plugin/Action/ViewsBulkOperationsSimpleTestAction.php \Drupal\views_bulk_operations_test\Plugin\Action\ViewsBulkOperationsSimpleTestAction::execute()
- 8.2 tests/views_bulk_operations_test/src/Plugin/Action/ViewsBulkOperationsSimpleTestAction.php \Drupal\views_bulk_operations_test\Plugin\Action\ViewsBulkOperationsSimpleTestAction::execute()
- 4.0.x tests/views_bulk_operations_test/src/Plugin/Action/ViewsBulkOperationsSimpleTestAction.php \Drupal\views_bulk_operations_test\Plugin\Action\ViewsBulkOperationsSimpleTestAction::execute()
Executes the plugin.
Overrides ExecutableInterface::execute
File
- tests/
views_bulk_operations_test/ src/ Plugin/ Action/ ViewsBulkOperationsSimpleTestAction.php, line 24
Class
- ViewsBulkOperationsSimpleTestAction
- Action for test purposes only.
Namespace
Drupal\views_bulk_operations_test\Plugin\ActionCode
public function execute($entity = NULL) {
$this
->messenger()
->addMessage(sprintf('Test action (preconfig: %s, label: %s)', $this->configuration['preconfig'], $entity
->label()));
return 'Test';
}