You are here

public function DeleteMedia::execute in Media entity 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Action/DeleteMedia.php \Drupal\media_entity\Plugin\Action\DeleteMedia::execute()

Executes the plugin.

Overrides ExecutableInterface::execute

File

src/Plugin/Action/DeleteMedia.php, line 87

Class

DeleteMedia
Redirects to a media deletion form.

Namespace

Drupal\media_entity\Plugin\Action

Code

public function execute($object = NULL) {
  $this
    ->executeMultiple(array(
    $object,
  ));
}