Tour

Defines the configured tour entity. Plugin annotation @ConfigEntityType( id = "tour", label = @Translation("Tour"), handlers = { "view_builder" = "Drupal\tour\TourViewBuilder" }, entity_keys = { "id" = "id", "label" = "label" }, config_export = { "id", "label", "module", "routes", "tips", }, lookup_keys = { "routes.*.route_name" } ) Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrai

ToStringTrait::_die

protected ToStringTrait::_die() For test purposes, wrap die() in an overridable method. File core/lib/Drupal/Component/Utility/ToStringTrait.php, line 31 Class ToStringTrait Wraps __toString in a trait to avoid some fatals. Namespace Drupal\Component\Utility Code protected function _die() { die(); }

ToStringTrait::__toString

public ToStringTrait::__toString() Implements the magic __toString() method. File core/lib/Drupal/Component/Utility/ToStringTrait.php, line 13 Class ToStringTrait Wraps __toString in a trait to avoid some fatals. Namespace Drupal\Component\Utility Code public function __toString() { try { return (string) $this->render(); } catch (\Exception $e) { // User errors in __toString() methods are considered fatal in the Drupal // error handler. trigger_error(get_class(

toolbar_toolbar

toolbar_toolbar() Implements hook_toolbar(). File core/modules/toolbar/toolbar.module, line 137 Administration toolbar for quick access to top level administration items. Code function toolbar_toolbar() { // The 'Home' tab is a simple link, with no corresponding tray. $items['home'] = array( '#type' => 'toolbar_item', 'tab' => array( '#type' => 'link', '#title' => t('Back to site'), '#url' => Url::fromRoute('<front>'), '#attributes' =&g

toolbar_page_top

toolbar_page_top(array &$page_top) Implements hook_page_top(). Add admin toolbar to the top of the page automatically. File core/modules/toolbar/toolbar.module, line 55 Administration toolbar for quick access to top level administration items. Code function toolbar_page_top(array &$page_top) { $page_top['toolbar'] = array( '#type' => 'toolbar', '#access' => \Drupal::currentUser()->hasPermission('access toolbar'), '#cache' => [ 'keys' => ['toolbar'],

toolbar_prerender_toolbar_administration_tray

toolbar_prerender_toolbar_administration_tray(array $element) Renders the toolbar's administration tray. Parameters array $element: A renderable array. Return value array The updated renderable array. See also drupal_render() File core/modules/toolbar/toolbar.module, line 222 Administration toolbar for quick access to top level administration items. Code function toolbar_prerender_toolbar_administration_tray(array $element) { $menu_tree = \Drupal::service('toolbar.menu_tree'); // Load

ToStringTrait::render

abstract public ToStringTrait::render() Renders the object as a string. Return value string|object The rendered string or an object implementing __toString(). File core/lib/Drupal/Component/Utility/ToStringTrait.php, line 41 Class ToStringTrait Wraps __toString in a trait to avoid some fatals. Namespace Drupal\Component\Utility Code abstract public function render();

ToStringTrait

Wraps __toString in a trait to avoid some fatals. Hierarchy trait \Drupal\Component\Utility\ToStringTrait File core/lib/Drupal/Component/Utility/ToStringTrait.php, line 8 Namespace Drupal\Component\Utility Members Name Modifiers Type Description ToStringTrait::render abstract public function Renders the object as a string. ToStringTrait::_die protected function For test purposes, wrap die() in an overridable method. ToStringTrait::__toString public function

toolbar_theme

toolbar_theme($existing, $type, $theme, $path) Implements hook_theme(). File core/modules/toolbar/toolbar.module, line 38 Administration toolbar for quick access to top level administration items. Code function toolbar_theme($existing, $type, $theme, $path) { $items['toolbar'] = array( 'render element' => 'element', ); $items['menu__toolbar'] = array( 'base hook' => 'menu', 'variables' => array('items' => array(), 'attributes' => array()), ); return $item

ToolbarMenuLinkTree::build

public ToolbarMenuLinkTree::build(array $tree, $level = 0) Builds a renderable array from a menu tree. The menu item's LI element is given one of the following classes: expanded: The menu item is showing its submenu. collapsed: The menu item has a submenu that is not shown. leaf: The menu item has no submenu. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: A data structure representing the tree, as returned from MenuLinkTreeInterface::load(). Return value array A renderable arr