You are here

function custom_pub_uninstall in Custom Publishing Options 8

Same name and namespace in other branches
  1. 6 custom_pub.install \custom_pub_uninstall()
  2. 7 custom_pub.install \custom_pub_uninstall()

Implements hook_uninstall(). Delete all custom publish option config entities.

File

./custom_pub.install, line 14
Install and update function for Custom Publishing Options.

Code

function custom_pub_uninstall() {
  foreach (\Drupal::entityTypeManager()
    ->getStorage('custom_publishing_option')
    ->loadMultiple() as $machine_name => $entity) {
    $entity
      ->delete();
  }
}