/** * @return string */ public function generateCode() { if ($this->codeFromTitle()) { return strtolower(\TAO::translit($this->title())); } return ''; }