public function ReusableBlockDelete::execute in Gutenberg 8.2
Same name and namespace in other branches
- 8 src/Plugin/Action/ReusableBlockDelete.php \Drupal\gutenberg\Plugin\Action\ReusableBlockDelete::execute()
Executes the plugin.
Overrides ExecutableInterface::execute
File
- src/
Plugin/ Action/ ReusableBlockDelete.php, line 22
Class
- ReusableBlockDelete
- Delete reusable block.
Namespace
Drupal\gutenberg\Plugin\ActionCode
public function execute($entity = NULL) {
/** @var \Drupal\block_content\BlockContentInterface $entity */
$entity
->delete();
}