Back to Joomla project (class list)

Class ToolbarFactoryInterface - list of methods

Interface for creating toolbar objects
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/ToolbarFactoryInterface.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
  • 4.0.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

Tags Summary

Since
4.0.0