CoreFiles by mySites.guru
ToolbarFactoryInterface.php43 lines, 976 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
6b54de8a56ec349817a8e95662172eb0
sha1
731606c90486589bc3ff0dc59c8ccab358c2a072
sha256
b9cadd2984ff4e22a7ff9fc35236341d30ac15e5bb6d213961574c592002279e
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Toolbar;

defined('_JEXEC') or die;

/**
 * Interface for creating toolbar objects
 *
 * @since  __DEPLOY_VERSION__
 */
interface ToolbarFactoryInterface
{
	/**
	 * Creates a new toolbar button.
	 *
	 * @param   Toolbar  $toolbar  The Toolbar instance to attach to the button
	 * @param   string   $type     Button Type
	 *
	 * @return  ToolbarButton
	 *
	 * @since   __DEPLOY_VERSION__
	 * @throws  \InvalidArgumentException
	 */
	public function createButton(Toolbar $toolbar, string $type): ToolbarButton;

	/**
	 * Creates a new Toolbar object.
	 *
	 * @param   string  $name  The toolbar name.
	 *
	 * @return  Toolbar
	 *
	 * @since   __DEPLOY_VERSION__
	 */
	public function createToolbar(string $name = 'toolbar'): Toolbar;
}

No other release has this exact content. See every version of this file.