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::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::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::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.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::valueCallback

public static Token::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to assign

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';