/** * Get option attributes * * @param mixed $value Value * * @return array */ protected function getOptionAttributes($value) { $list = parent::getOptionAttributes($value); if ($value == $this->getRootPermission()->getId()) { $list['data-isRoot'] = '1'; } return $list; }