function hook_insert_render in Insert 8.2
May return a rendered template to be preferred over native Insert module templates.
@example $moduleName = explode('__', $styleName, 2)[0]; return $moduleName === 'insert_text' ? \Drupal::theme()->render( ['insert_text__' . str_replace('-', '_', $styleName), 'insert_text'], $vars ) : [];
Parameters
string $styleName:
array $vars:
Return value
array
See also
2 functions implement hook_insert_render()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- insert_colorbox_insert_render in modules/
insert_colorbox/ insert_colorbox.module - Implements hook_insert_render().
- insert_insert_render in ./
insert.module - Implements hook_insert_render().
1 invocation of hook_insert_render()
- _insert_render in ./
insert.module - Returns the rendered template for a specific style or pseudo-style.
File
- ./
insert.api.php, line 114 - This file documents hooks provided by the Insert module.
Code
function hook_insert_render($styleName, array $vars) {
return [];
}