Beispiel #1
0
 /**
  * @param int $idTemplate
  *
  * @throws \Spryker\Zed\Cms\Business\Exception\MissingTemplateException
  *
  * @return \Orm\Zed\Cms\Persistence\SpyCmsTemplate
  */
 protected function getTemplateEntityById($idTemplate)
 {
     $templateEntity = $this->cmsQueryContainer->queryTemplateById($idTemplate)->findOne();
     if (!$templateEntity) {
         throw new MissingTemplateException(sprintf('Tried to retrieve a missing template with id %s', $idTemplate));
     }
     return $templateEntity;
 }