protected function addSearchType($page, &$doc)
 {
     parent::addSearchType($page, $doc);
     if (false !== strpos($doc['type'], "\\")) {
         $doc['type'] = $this->contentType->getFriendlyName($doc['type']);
     }
 }
 /**
  * @inheritDoc
  */
 public function getFunctions()
 {
     return ['page_type_name' => new \Twig_SimpleFunction('page_type_name', function ($page) {
         if ($page instanceof HasNodeInterface) {
             $page = ClassLookup::getClass($page);
         } elseif ($page instanceof HasRefInterface) {
             $page = $page->getRefName();
         }
         return $this->contentType->getFriendlyName($page);
     })];
 }