mdrop_suite-1.0.0-alpha1/modules/mdrop_suite_landing/mdrop_suite_landing.install

modules/mdrop_suite_landing/mdrop_suite_landing.install
<?php

/**
 * @file
 * Mdrop Suite - Landing install module file.
 */

/**
 * Implements hook_uninstall().
 */
function mdrop_suite_landing_uninstall() {
  $storage = \Drupal::entityTypeManager()->getStorage('node');
  $landings = $storage->loadByProperties(['type' => 'mdrop_suite_landing']);
  $storage->delete($landings);
  \Drupal::configFactory()->getEditable('core.base_field_override.node.mdrop_suite_landing.promote')->delete();
  \Drupal::configFactory()->getEditable('core.entity_form_display.node.mdrop_suite_landing.default')->delete();
  \Drupal::configFactory()->getEditable('core.entity_view_display.node.mdrop_suite_landing.default')->delete();
  \Drupal::configFactory()->getEditable('core.entity_view_display.node.mdrop_suite_landing.full')->delete();
  \Drupal::configFactory()->getEditable('core.entity_view_display.node.mdrop_suite_landing.teaser')->delete();
  \Drupal::configFactory()->getEditable('field.field.node.mdrop_suite_landing.body')->delete();
  \Drupal::configFactory()->getEditable('field.field.node.mdrop_suite_landing.layout_builder__layout')->delete();
  \Drupal::configFactory()->getEditable('language.content_settings.node.mdrop_suite_landing')->delete();
  \Drupal::configFactory()->getEditable('node.type.mdrop_suite_landing')->delete();
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc