decoupled_router.api.php in Decoupled Router 2.x
Hooks provided by the Decoupled Router module.
File
decoupled_router.api.phpView source
<?php
/**
* @file
* Hooks provided by the Decoupled Router module.
*/
/**
* Perform alterations before to return the router info.
*
* @param array $output
* Nested matrix of basic elements that comprise the found entity.
* @param array $context
* An array with the following keys:
* - entity: The type of the parent entity.
*/
function hook_decoupled_router_info_alter(&$output, $context) {
if ($output['entity'] && $context['entity']) {
$output['entity']['description'] = t('New relevant description.');
}
}
Functions
Name![]() |
Description |
---|---|
hook_decoupled_router_info_alter | Perform alterations before to return the router info. |