Back to Toolbar class

Method createChild

public static
createChild
(mixed $name)
Create child toolbar.
Parameters
  • string $name The toolbar name.
Returns
  • static
Since
  • 4.0.0
Class: Toolbar
Project: Joomla

Method createChild - Source code

/**
 * Create child toolbar.
 *
 * @param   string  $name  The toolbar name.
 *
 * @return  static
 *
 * @since   4.0.0
 */
public function createChild($name) : self
{
    return new static($name, $this->factory);
}