You are here

function google_tag_update_8102 in GoogleTagManager 8

Install the container configuration entity type.

File

./google_tag.install, line 170
Provides install, update, and uninstall functions.

Code

function google_tag_update_8102(&$sandbox) {
  $type_manager = \Drupal::entityTypeManager();
  $type_manager
    ->clearCachedDefinitions();
  $entity_type = $type_manager
    ->getDefinition('google_tag_container');
  \Drupal::entityDefinitionUpdateManager()
    ->installEntityType($entity_type);
  return t('Installed the google_tag_container entity type');
}