You are here

public function DeleteMedia::execute in Media Entity Actions 8

Same name and namespace in other branches
  1. 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\Action

Code

public function execute($object = NULL) {
  $this
    ->executeMultiple($object ? [
    $object,
  ] : []);
}