You are here

layout_discovery.post_update.php in Drupal 8

Post update functions for layout discovery.

File

core/modules/layout_discovery/layout_discovery.post_update.php
View source
<?php

/**
 * @file
 * Post update functions for layout discovery.
 */
use Drupal\Core\Config\Entity\ConfigEntityUpdater;

/**
 * Recalculate dependencies for the entity_form_display entity.
 */
function layout_discovery_post_update_recalculate_entity_form_display_dependencies(&$sandbox = NULL) {
  \Drupal::classResolver(ConfigEntityUpdater::class)
    ->update($sandbox, 'entity_form_display');
}

/**
 * Recalculate dependencies for the entity_view_display entity.
 */
function layout_discovery_post_update_recalculate_entity_view_display_dependencies(&$sandbox = NULL) {
  \Drupal::classResolver(ConfigEntityUpdater::class)
    ->update($sandbox, 'entity_view_display');
}

Functions

Namesort descending Description
layout_discovery_post_update_recalculate_entity_form_display_dependencies Recalculate dependencies for the entity_form_display entity.
layout_discovery_post_update_recalculate_entity_view_display_dependencies Recalculate dependencies for the entity_view_display entity.