Creates node-level Actions that execute configured media Actions against media referencing the node.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
456 B

<?php
/**
* @file
* Install and uninstall hooks for Node Media Action Bridge.
*/
/**
* Implements hook_uninstall().
*/
function node_media_action_bridge_uninstall(): void {
$storage = \Drupal::entityTypeManager()->getStorage('action');
$ids = $storage->getQuery()
->condition('id', 'node_media_action_bridge_', 'STARTS_WITH')
->accessCheck(FALSE)
->execute();
if ($ids) {
$storage->delete($storage->loadMultiple($ids));
}
}