public function ViewsBulkOperationsSimpleTestAction::execute in Views Bulk Operations (VBO) 8.2
Same name and namespace in other branches
- 8.3 tests/views_bulk_operations_test/src/Plugin/Action/ViewsBulkOperationsSimpleTestAction.php \Drupal\views_bulk_operations_test\Plugin\Action\ViewsBulkOperationsSimpleTestAction::execute()
- 8 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 22
Class
- ViewsBulkOperationsSimpleTestAction
- Action for test purposes only.
Namespace
Drupal\views_bulk_operations_test\Plugin\ActionCode
public function execute($entity = NULL) {
drupal_set_message(sprintf('Test action (preconfig: %s, label: %s)', $this->configuration['preconfig'], $entity
->label()));
return 'Test';
}