layout_discovery.post_update.php

Same filename in other branches
  1. 9 core/modules/layout_discovery/layout_discovery.post_update.php
  2. 10 core/modules/layout_discovery/layout_discovery.post_update.php
  3. 11.x core/modules/layout_discovery/layout_discovery.post_update.php

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

Title Deprecated Summary
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.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.