parent = $show; } /** * @return array|mixed|string|null */ public function key() { if ($this->primaryKey) { return $this->primaryKey; } return $this->parent ? $this->parent->key() : null; } /** * @return string|void */ protected function href() { } /** * @return string|void */ public function html() { if ($href = $this->href()) { $this->disabledHandler = true; } $this->setHtmlAttribute([ 'data-_key' => $this->key(), 'href' => $href ?: 'javascript:void(0);', 'class' => $this->style.' '.$this->elementClass(), ]); return "formatHtmlAttributes()}>{$this->title()}"; } }