function responsive_image_entity_view_display_presave

Implements hook_ENTITY_TYPE_presave() for entity_view_display.

File

core/modules/responsive_image/responsive_image.module, line 549

Code

function responsive_image_entity_view_display_presave(EntityViewDisplayInterface $view_display) : void {
    
    /** @var \Drupal\responsive_image\ResponsiveImageConfigUpdater $config_updater */
    $config_updater = \Drupal::classResolver(ResponsiveImageConfigUpdater::class);
    $config_updater->processResponsiveImageField($view_display);
}

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