Move all files to 2017/
This commit is contained in:
parent
ac7370f67f
commit
2875863330
15717 changed files with 0 additions and 0 deletions
23
2017/web/core/modules/path/path.install
Normal file
23
2017/web/core/modules/path/path.install
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Update functions for the path module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue