You are here

form_mode_manager_examples.install in Form mode manager 8

File

modules/form_mode_manager_examples/form_mode_manager_examples.install
View source
<?php

/**
 * @file
 * Contains form_mode_manager_examples.install.
 */

/**
 * Implements hook_install().
 */
function form_mode_manager_examples_install() {

  // Set the front page.
  \Drupal::configFactory()
    ->getEditable('system.site')
    ->set('page.front', '/form_mode_manager_examples')
    ->save();

  // Tell Drupal you have enhance all compatibles entity_types.

  /* @var \Drupal\Core\Cache\CacheTagsInvalidatorInterface $invalidator */
  $invalidator = \Drupal::service('cache_tags.invalidator');
  $invalidator
    ->invalidateTags([
    'local_action',
    'local_tasks',
    'entity_types',
    'rendered',
  ]);
}

Functions