/** * @param array $data * @return PageLocalization */ protected function createEntityPageLocalization($data) { $entity = new PageLocalization($data['locale']); $entity->setPathPart($data['pathPart']); $entity->setMaster($this->resolveEntity('page', $data['page'])); $entity->setTitle($data['title']); $entity->setTemplate($this->resolveEntity('template', $data['template'])); return $entity; }