public function renderTitle($tag = 'h1', $content = null)
    {
        if (null === $content && null !== $page = $this->getPage()) {
            $content = $page->getTitle();

            // Tags the response as Page relative
            $this->tagManager->addTags($page->getEntityTag());
        }

        if (0 == strlen($content)) {
            $content = 'Undefined title';
        }

        return $this->renderTag($tag, $content);
    }
public function renderTitle($tag = 'h1', $content = null)
    {
        if (null === $content && null !== $page = $this->getPage()) {
            $content = $page->getTitle();

            // Tags the response as Page relative
            $this->tagManager->addTags($page->getEntityTag());
        }

        if (0 == strlen($content)) {
            $content = 'Undefined title';
        }

        return $this->renderTag($tag, $content);
    }
public function renderTitle ( $ tag = 'h1' , $ content = null ) { if ( null === $ content && null !== $ page = $ this -> getPage ( ) ) { $ content = $ page -> getTitle ( ) ; // Tags the response as Page relative $ this -> tagManager -> addTags ( $ page -> getEntityTag ( ) ) ; } if ( 0 == strlen ( $ content ) ) { $ content = 'Undefined title' ; } return $ this -> renderTag ( $ tag , $ content ) ; }
Returns current page's title.

@param string $tag
@param string $content

@return string
Returns current page s title .