function hook_blazy_complete_form_element_alter in Blazy 8
Same name and namespace in other branches
- 8.2 blazy.api.php \hook_blazy_complete_form_element_alter()
- 7 blazy.api.php \hook_blazy_complete_form_element_alter()
Alters blazy-related formatter form elements.
Parameters
array $form: The $form being modified.
array $definition: The array defining the scope of form elements.
Related topics
1 invocation of hook_blazy_complete_form_element_alter()
- BlazyAdminBase::finalizeForm in src/
Form/ BlazyAdminBase.php - Returns re-usable logic, styling and assets across fields and Views.
File
- ./
blazy.api.php, line 235 - Hooks and API provided by the Blazy module.
Code
function hook_blazy_complete_form_element_alter(array &$form, array $definition = []) {
// Limit the scope to Slick formatters, blazy, gridstack, etc. Or swap em all.
if (isset($definition['namespace']) && $definition['namespace'] == 'slick') {
// Extend the formatter form elements as needed.
}
}