You are here

function message_ui_uninstall in Message UI 8

Implements hook_uninstall().

File

./message_ui.install, line 26
message_ui.install

Code

function message_ui_uninstall() {

  // Removing the contextual links operations handler.
  if ($entity = \Drupal::entityTypeManager()
    ->getStorage('view')
    ->load('message')) {
    $display = $entity
      ->get('display');
    unset($display['default']['display_options']['fields']['message_ui_contextual_links']);
    $entity
      ->set('display', $display);
    $entity
      ->save();
  }
}