form_mode_manager_examples.install in Form mode manager 8
Contains form_mode_manager_examples.install.
File
modules/form_mode_manager_examples/form_mode_manager_examples.installView 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
Name![]() |
Description |
---|---|
form_mode_manager_examples_install | Implements hook_install(). |