mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15214] Provide usage example within event docblock
Adds similar usage examples like the event core.permissions has PHPBB3-15214
This commit is contained in:
parent
7345106f11
commit
5b16729934
1 changed files with 9 additions and 1 deletions
|
@ -40,7 +40,15 @@ class event extends \Twig\TokenParser\AbstractTokenParser
|
|||
* Allow assigning priority to template events
|
||||
*
|
||||
* @event core.twig_tokenparser_constructor
|
||||
* @var array template_event_priority_array Array with template event priority assignments per extension namespace
|
||||
* @var array template_event_priority_array Array with template event priority assignments per extension namespace, usage:
|
||||
* '<author>_<extension_name>' => array(
|
||||
* 'event/<template_event_name>' => priority_number,
|
||||
* ),
|
||||
* Example:
|
||||
* 'phpbb_viglink' => array(
|
||||
* 'event/acp_help_phpbb_stats_after' => 80,
|
||||
* 'event/overall_footer_after' => 100,
|
||||
* ),
|
||||
* @since 3.3.12-RC1
|
||||
*/
|
||||
if ($this->phpbb_dispatcher)
|
||||
|
|
Loading…
Add table
Reference in a new issue