/** * Check whether element should be displayed * * @return bool */ public function isVisible() { if (!$this->isAllowed()) { return false; } return parent::isVisible(); }