/** * {@inheritdoc} */ public function getModelTitle() { if ($this->name) { return $this->slug ? "{$this->name} ({$this->slug})" : $this->name; } return parent::getModelTitle(); }
/** * {@inheritdoc} */ public function getModelTitle() { return $this->label ? $this->label : parent::getModelTitle(); }