function ImageModuleTestHooks::imageStylePresave
Implements hook_image_style_presave().
Used to save test third party settings in the image style entity.
File
-
core/
modules/ image/ tests/ modules/ image_module_test/ src/ Hook/ ImageModuleTestHooks.php, line 37
Class
- ImageModuleTestHooks
- Hook implementations for image_module_test.
Namespace
Drupal\image_module_test\HookCode
public function imageStylePresave(ImageStyleInterface $style) {
$style->setThirdPartySetting('image_module_test', 'foo', 'bar');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.