Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0

This commit is contained in:
Pantheon Automation 2016-10-06 15:16:20 -07:00 committed by Greg Anderson
parent 2f563ab520
commit f1c8716f57
1732 changed files with 52334 additions and 11780 deletions

View file

@ -0,0 +1,32 @@
<?php
/**
* @file
* Update functions for the path module.
*/
/**
* @addtogroup updates-8.2.0
* @{
*/
/**
* Change the path field to computed for node and taxonomy_term.
*/
function path_update_8200() {
$entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager();
foreach (['node', 'taxonomy_term'] as $entity_type_id) {
if ($entity_definition_update_manager->getEntityType($entity_type_id)) {
// Computed field definitions are not tracked by the entity definition
// update manager, so remove them.
$storage_definition = $entity_definition_update_manager->getFieldStorageDefinition('path', $entity_type_id);
if ($storage_definition) {
$entity_definition_update_manager->uninstallFieldStorageDefinition($storage_definition);
}
}
}
}
/**
* @} End of "addtogroup updates-8.2.0".
*/