Exemple #1
0
 /**
  * @param ItemInterface $child
  * @return $this
  */
 public function addChild($child)
 {
     return parent::addChild($child);
 }
 /**
  * Construct.
  *
  * @param array $attributes Html attributes.
  */
 public function __construct(array $attributes = array())
 {
     $attributes = array_merge_recursive(array('class' => array('btn', 'dropdown-toggle'), 'data-toggle' => 'dropdown'), $attributes);
     $this->toggle = new Button();
     parent::__construct($attributes);
 }