Move into nested docroot
This commit is contained in:
parent
83a0d3a149
commit
c8b70abde9
13405 changed files with 0 additions and 0 deletions
web/core/modules/system
38
web/core/modules/system/system.api.php
Normal file
38
web/core/modules/system/system.api.php
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Hooks provided by the System module.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Url;
|
||||
|
||||
/**
|
||||
* @addtogroup hooks
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* Alters theme operation links.
|
||||
*
|
||||
* @param $theme_groups
|
||||
* An associative array containing groups of themes.
|
||||
*
|
||||
* @see system_themes_page()
|
||||
*/
|
||||
function hook_system_themes_page_alter(&$theme_groups) {
|
||||
foreach ($theme_groups as $state => &$group) {
|
||||
foreach ($theme_groups[$state] as &$theme) {
|
||||
// Add a foo link to each list of theme operations.
|
||||
$theme->operations[] = array(
|
||||
'title' => t('Foo'),
|
||||
'url' => Url::fromRoute('system.themes_page'),
|
||||
'query' => array('theme' => $theme->getName())
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @} End of "addtogroup hooks".
|
||||
*/
|
Reference in a new issue