You are here

public function DeleteFlaggingAction::execute in Flag 8.4

Executes the plugin.

Overrides ExecutableInterface::execute

File

src/Plugin/Action/DeleteFlaggingAction.php, line 31

Class

DeleteFlaggingAction
An action plugin to delete a flagging entity directly.

Namespace

Drupal\flag\Plugin\Action

Code

public function execute(FlaggingInterface $flagging = NULL) {
  $flagging
    ->delete();
}