public function DeleteMedia::execute in Media Entity Actions 8
Same name and namespace in other branches
- 8.2 src/Plugin/Action/DeleteMedia.php \Drupal\media_entity_actions\Plugin\Action\DeleteMedia::execute()
Executes the plugin.
Overrides ExecutableInterface::execute
File
- src/
Plugin/ Action/ DeleteMedia.php, line 86
Class
- DeleteMedia
- Redirects to a media item deletion form.
Namespace
Drupal\media_entity_actions\Plugin\ActionCode
public function execute($object = NULL) {
$this
->executeMultiple($object ? [
$object,
] : []);
}