function _textimage_form_image_style_form_validate in Textimage 8.3
Same name and namespace in other branches
- 8.4 textimage.module \_textimage_form_image_style_form_validate()
Submit handler to deal with the altered 'image_style_form' form.
1 string reference to '_textimage_form_image_style_form_validate'
- textimage_form_image_style_form_alter in ./
textimage.module - Make alterations to the core 'image_style_form' form.
File
- ./
textimage.module, line 204 - Textimage - Provides text to image manipulations.
Code
function _textimage_form_image_style_form_validate($form, FormStateInterface $form_state) {
$image_style = $form_state
->getFormObject()
->getEntity();
$image_style
->setThirdPartySetting('textimage', 'uri_scheme', $form_state
->getValue([
'textimage_options',
'uri_scheme',
]));
}