function lazy_field_formatter_settings_summary_alter in Lazy-load 8.2
Same name and namespace in other branches
- 8.3 lazy.module \lazy_field_formatter_settings_summary_alter()
- 8 lazy.module \lazy_field_formatter_settings_summary_alter()
Implements hook_field_formatter_settings_summary_alter().
File
- ./
lazy.module, line 195 - Module file for Lazy-load.
Code
function lazy_field_formatter_settings_summary_alter(&$summary, $context) {
if (in_array($context['formatter']
->getPluginId(), lazy_field_types(), TRUE) && $context['formatter']
->getThirdPartySetting('lazy', 'lazy_image', FALSE)) {
$summary[] = t('Lazy-loading enabled');
}
}