Function Hook_snippet_template_editor_load->generate_dropdown_from
Definitions
sources/hooks/systems/snippets/template_editor_load.php
- Helper function to get Tempcode for insertion of Tempcode variables.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $array | array | No | No | required parameter | N/A | N/A | A list of pairs (symbol name,arity) |
| $stub | string | No | No | required parameter | N/A | N/A | The "stub" that determines what language strings to lookup for the given symbols, and generally, the collective naming strategy |
| $file_id | string | No | No | required parameter | N/A | N/A | The ID of the actual template editor we are working with |
Returns
- The Tempcode
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Helper function to get Tempcode for insertion of Tempcode variables.
*
* @param array $array A list of pairs (symbol name,arity)
* @param string $stub The "stub" that determines what language strings to lookup for the given symbols, and generally, the collective naming strategy
* @param string $file_id The ID of the actual template editor we are working with
* @return Tempcode The Tempcode
*/
protected function generate_dropdown_from(array $array, string $stub, string $file_id) : object
* Helper function to get Tempcode for insertion of Tempcode variables.
*
* @param array $array A list of pairs (symbol name,arity)
* @param string $stub The "stub" that determines what language strings to lookup for the given symbols, and generally, the collective naming strategy
* @param string $file_id The ID of the actual template editor we are working with
* @return Tempcode The Tempcode
*/
protected function generate_dropdown_from(array $array, string $stub, string $file_id) : object

