Commit 697e173d authored by Sascha Grossenbacher's avatar Sascha Grossenbacher Committed by Damien McKenna
Browse files

Issue #3105837 by Berdir: Remove metatag_install().

parent 4d2ba594
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
-------------------------------
#3102937 by yasmeensalah, Berdir: Plugin AlternateHandheld is misnamed.
#3103725 by thalles: Create kernel test to Form\MetatagSettingsForm.
#3105837 by Berdir: Remove metatag_install().


Metatag 8.x-1.11, 2019-12-20
+3 −13
Original line number Diff line number Diff line
@@ -2,19 +2,9 @@

/**
 * @file
 * Install, update and uninstall functions for the metatag module.
 * Requirements and update functions for the Metatag module.
 */

/**
 * Implements hook_install().
 */
function metatag_install() {
  // Don't display the message during site installation, it looks funny.
  if (!drupal_installation_attempted()) {
    \Drupal::messenger()->addMessage(t("To adjust global defaults, go to admin/config/search/metatag. If you need to set meta tags for a specific entity, edit its bundle and add the Metatag field."));
  }
}

/**
 * Implements hook_requirements().
 */
@@ -285,7 +275,7 @@ function metatag_update_8103() {
  $config_installer->installDefaultConfig('module', 'metatag');

  // Apply all entity definition changes.
  \Drupal::entityDefinitionUpdateManager()->applyUpdates();
  \Drupal::entityDefinitionUpdateManager()->getChangeList();

  // 2. Extract Metatag field defaults.
  $entity_info = $entity_manager->getDefinitions();
@@ -375,7 +365,7 @@ function metatag_update_8105() {
 * Add the metatag_defaults config entity to the site.
 */
function metatag_update_8106() {
  \Drupal::entityDefinitionUpdateManager()->applyUpdates();
  \Drupal::entityDefinitionUpdateManager()->getChangeList();
}

/**