Back to Joomla project (class list)

Class ContainerAwareToolbarFactory - list of methods

Default factory for creating toolbar objects

Extends

Package: Joomla\CMS\Toolbar
Copyright: (C) 2017 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Toolbar/ContainerAwareToolbarFactory.php
Project: Joomla

Method Summary

public \Joomla\CMS\Toolbar\ToolbarButton
(\Joomla\CMS\Toolbar\Toolbar $toolbar, string $type)

Creates a new toolbar button.
Parameters
  • \Joomla\CMS\Toolbar\Toolbar $toolbar The Toolbar instance to attach to the button
  • string $type Button Type
Returns
  • \Joomla\CMS\Toolbar\ToolbarButton
Since
  • 3.8.0
-
  • \InvalidArgumentException
Show source code of this method: createButton Source Code

public \Joomla\CMS\Toolbar\Toolbar
(string $name = 'toolbar')

Creates a new Toolbar object.
Parameters
  • string $name The toolbar name.
Returns
  • \Joomla\CMS\Toolbar\Toolbar
Since
  • 4.0.0
Show source code of this method: createToolbar Source Code

private string|null
(string $type)

Load the button class including the deprecated ones.
Parameters
  • string $type Button Type (normalized)
Returns
  • string|null
Since
  • 4.0.0
Show source code of this method: loadButtonClass Source Code

Tags Summary

Since
4.0.0