/** * Creates and returns the title tag * * @param boolean $data_only * Set to true if you want to get get only the data without a generated html * * @return string|array */ protected final function getTitle($data_only = false) { if ($data_only) { return $this->page->getTitle(); } return PHP_EOL . '<title>' . $this->page->getTitle() . '</title>'; }