Beispiel #1
0
 /**
  * @param string $name
  * @param string $type
  * @param int $value
  *
  * @return bool
  */
 protected function hasExistingBlock($name, $type, $value)
 {
     $blockEntity = $this->cmsQueryContainer->queryBlockByNameAndTypeValue($name, $type, $value)->findOne();
     $hasBlock = $blockEntity !== null;
     return $hasBlock;
 }