/** * {@inheritDoc} */ protected function toEntity(array $result) { $entity = new VirtualEntity(); $entity->setLangId($result['lang_id'], VirtualEntity::FILTER_INT)->setWebPageId($result['web_page_id'], VirtualEntity::FILTER_INT)->setTitle($this->highlight($result['title']))->setContent($this->filterContent($result['content']))->setUrl($this->webPageManager->getUrl($entity->getWebPageId(), $entity->getLangId())); return $entity; }