You are here

function hook_layouter_templates_info in Layouter - WYSIWYG layout templates 8

Write your custom layout templates by implementing this hook.

Template must have structure:

LAYOUT_NAME = [ 'title' => t('LAYOUT_TITLE'), 'fields' => [ 'FIELD_NAME' => [ 'type' => 'FIELD_TYPE', (Required, allowed: text, image) 'title' => t('FIELD_TITLE'), (Optional) 'description' => t('ADDITIONAL_DESCRIPTION'), (Optional) ], ], 'theme' => 'LAYOUT_THEME_NAME', ];

2 functions implement hook_layouter_templates_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

layouter_extension_example_layouter_templates_info in modules/layouter_extension_example/layouter_extension_example.module
Implements hook_layouter_templates_info().
layouter_layouter_templates_info in ./layouter.module
Implements hook_layouter_templates_info().
1 invocation of hook_layouter_templates_info()
LayouterForm::__construct in src/Form/LayouterForm.php

File

./layouter.api.php, line 27
Contains declaration of hook_layouter_templates_info.

Code

function hook_layouter_templates_info() {
}