Toolbar::getInfo

public Toolbar::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/modules/toolbar/src/Element/Toolbar.php, line 19 Class Toolbar Provides a render element for the default Drupal toolbar. Namespace Drupal\toolbar\Element Code publ

Toolbar::moduleHandler

protected static Toolbar::moduleHandler() Wraps the module handler. Return value \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/toolbar/src/Element/Toolbar.php, line 112 Class Toolbar Provides a render element for the default Drupal toolbar. Namespace Drupal\toolbar\Element Code protected static function moduleHandler() { return \Drupal::moduleHandler(); }

Toolbar::breakpointManager

protected static Toolbar::breakpointManager() Wraps the breakpoint manager. Return value \Drupal\breakpoint\BreakpointManagerInterface File core/modules/toolbar/src/Element/Toolbar.php, line 103 Class Toolbar Provides a render element for the default Drupal toolbar. Namespace Drupal\toolbar\Element Code protected static function breakpointManager() { return \Drupal::service('breakpoint.manager'); }

Toolbar::preRenderToolbar

public static Toolbar::preRenderToolbar($element) Builds the Toolbar as a structured array ready for drupal_render(). Since building the toolbar takes some time, it is done just prior to rendering to ensure that it is built only if it will be displayed. Parameters array $element: A renderable array. Return value array A renderable array. See also toolbar_page_top() File core/modules/toolbar/src/Element/Toolbar.php, line 66 Class Toolbar Provides a render element for the default Drupal t

toolbar.module

Administration toolbar for quick access to top level administration items. File core/modules/toolbar/toolbar.module Functions Name Description template_preprocess_toolbar Prepares variables for administration toolbar templates. toolbar_get_rendered_subtrees Returns the rendered subtree of each top-level toolbar link. toolbar_help Implements hook_help(). toolbar_menu_navigation_links Adds toolbar-specific attributes to the menu link tree. toolbar_page_top Implements hoo

toolbar.html.twig

Default theme implementation for the administrative toolbar. Available variables: attributes: HTML attributes for the wrapper. toolbar_attributes: HTML attributes to apply to the toolbar. toolbar_heading: The heading or label for the toolbar. tabs: List of tabs for the toolbar. attributes: HTML attributes for the tab container. link: Link or button for the menu tab. trays: Toolbar tray list, each associated with a tab. Each tray in trays contains: attributes: HTML attributes to apply t

Toolbar

Provides a render element for the default Drupal toolbar. Plugin annotation @RenderElement("toolbar") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\toolbar\Element\Toolbar File core/modules/toolbar/src/Element/Toolbar.php, line 14 Na

Token::__construct

public Token::__construct(ModuleHandlerInterface $module_handler, CacheBackendInterface $cache, LanguageManagerInterface $language_manager, CacheTagsInvalidatorInterface $cache_tags_invalidator, RendererInterface $renderer) Constructs a new class instance. Parameters \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler. \Drupal\Core\Cache\CacheBackendInterface $cache: The token cache. \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language ma

Token::setInfo

public Token::setInfo(array $tokens) Sets metadata describing supported tokens. Parameters array $tokens: Token metadata that has an identical structure to the return value of hook_token_info(). See also hook_token_info() File core/lib/Drupal/Core/Utility/Token.php, line 397 Class Token Drupal placeholder/token replacement system. Namespace Drupal\Core\Utility Code public function setInfo(array $tokens) { $this->tokenInfo = $tokens; }

Token::TOKEN_INFO_CACHE_TAG

The tag to cache token info with. File core/lib/Drupal/Core/Utility/Token.php, line 65 Class Token Drupal placeholder/token replacement system. Namespace Drupal\Core\Utility Code const TOKEN_INFO_CACHE_TAG = 'token_info';