function media_entity_view_display_presave

Implements hook_ENTITY_TYPE_presave() for entity_view_display.

File

core/modules/media/media.module, line 370

Code

function media_entity_view_display_presave(EntityViewDisplayInterface $view_display) : void {
    $config_updater = \Drupal::classResolver(MediaConfigUpdater::class);
    assert($config_updater instanceof MediaConfigUpdater);
    $config_updater->processOembedEagerLoadField($view_display);
}

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