Function Hook_snippet_template_editor_load->get_tempcode_editing_toolbar_dropdowns
Definitions
sources/hooks/systems/snippets/template_editor_load.php
- Get dropdowns of things to insert from the editing toolbar.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $file | ?ID_TEXT | No | No | required parameter | N/A | N/A | The template (null: not a template) |
| $file_id | string | No | No | required parameter | N/A | N/A | The ID of the actual template editor we are working with |
Returns
- Tuple of dropdowns
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get dropdowns of things to insert from the editing toolbar.
*
* @param ?ID_TEXT $file The template (null: not a template)
* @param string $file_id The ID of the actual template editor we are working with
* @return array Tuple of dropdowns
*/
protected function get_tempcode_editing_toolbar_dropdowns(?string $file, string $file_id) : array
* Get dropdowns of things to insert from the editing toolbar.
*
* @param ?ID_TEXT $file The template (null: not a template)
* @param string $file_id The ID of the actual template editor we are working with
* @return array Tuple of dropdowns
*/
protected function get_tempcode_editing_toolbar_dropdowns(?string $file, string $file_id) : array

