getAuthIdentity() && $this->_hasNavigationBlock) { $this->_initNavigationBlock(); } return $this; } public function hasNavigationBlock($value) { $this->_hasNavigationBlock = (bool) $value; return $this; } protected function _initNavigationBlock() { $item = [ 'sub' => $this->_getUserNavigationList(), 'active' => $this->getOption('id'), 'tpl' => $this->getTemplate('navigation-block.tpl'), ]; $this->addItem($item, 'LEFT_ITEMS'); return $this; } }