You are here

function flexiform_uninstall in Flexiform 8

Implements hook_uninstall().

File

./flexiform.install, line 26
Install, update and uninstall functions for the flexiform module.

Code

function flexiform_uninstall() {
  $manager = \Drupal::entityDefinitionUpdateManager();

  // Get hold of our user type definition.
  $entity_form_display_type = $manager
    ->getEntityType('entity_form_display');

  // Change the class.
  $entity_form_display_type
    ->setClass('Drupal\\Core\\Entity\\Entity\\EntityFormDisplay');
  $entity_form_display_type
    ->setFormClass('edit', 'Drupal\\field_ui\\Form\\EntityFormDisplayEditForm');
  $manager
    ->updateEntityType($entity_form_display_type);
}