public function __construct($name = null, $attributes = null, array $data = array()) { if ($attributes === null) { $attributes = array(); } $attributes['class'] = 'magicselect-sortable'; $attributes['multiple'] = 'multiple'; $attributes['data-offer'] = '-- ' . ___("Please Select") . ' --'; parent::__construct($name, $attributes, $data); }