You are here

public function FileDelete::execute in File Entity (fieldable files) 8.2

Executes the plugin.

Overrides ExecutableInterface::execute

File

src/Plugin/Action/FileDelete.php, line 50

Class

FileDelete
Delete a file.

Namespace

Drupal\file_entity\Plugin\Action

Code

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