src/Kunstmaan/SeoBundle/Twig/SeoTwigExtension.php
public function getTitleFor(AbstractPage $entity)
    {
        $arr = array();

        $arr[] = $this->getSeoTitle($entity);

        $arr[] = $entity->getTitle();

        return $this->getPreferredValue($arr);
    }
public function getTitleFor(AbstractPage $entity)
    {
        $arr = array();

        $arr[] = $this->getSeoTitle($entity);

        $arr[] = $entity->getTitle();

        return $this->getPreferredValue($arr);
    }
public function getTitleFor ( AbstractPage $ entity ) { $ arr = array ( ) ; $ arr [ ] = $ this -> getSeoTitle ( $ entity ) ; $ arr [ ] = $ entity -> getTitle ( ) ; return $ this -> getPreferredValue ( $ arr ) ; }
The first value that is not null or empty will be returned.

@param AbstractPage $entity the entity for which you want the page title

@return string The page title. Will look in the SEO meta first, then the NodeTranslation, then the page.
The first value that is not null or empty will be returned .