themekey.module in ThemeKey 8
Same filename and directory in other branches
File
themekey.moduleView source
<?php
use Drupal\themekey\Entity\ThemeKeyRule;
/**
* Implements hook_theme().
*/
function themekey_theme() {
return array(
'themekey_rule_chain_table' => array(
'render element' => 'form',
'file' => 'themekey.admin.inc',
'function' => 'theme_themekey_rule_chain_table',
),
);
}
/**
* Menu argument loader. Returns a ThemeKey Rule entity
*
* @param $id
* @return \Drupal\Core\Entity\EntityInterface|static
*/
function themekey_rule_load($id) {
return ThemeKeyRule::load($id);
}
Functions
Name | Description |
---|---|
themekey_rule_load | Menu argument loader. Returns a ThemeKey Rule entity |
themekey_theme | Implements hook_theme(). |