/** * @param array $attributes */ 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); }