Ejemplo n.º 1
0
 /**
  * Verifies when the block is included
  *
  * @param  string  $slotName
  * @return boolean
  */
 private function isIncluded($slotName)
 {
     if (!preg_match('/^([0-9]+)\\-/', $slotName, $matches)) {
         return false;
     }
     // @codeCoverageIgnoreStart
     $blockId = $matches[1];
     $slotBlocks = $this->pageBlocks->getBlocks();
     foreach ($slotBlocks as $blocks) {
         foreach ($blocks as $block) {
             if ($block->getId() == $blockId) {
                 return true;
             }
         }
     }
     return false;
     // @codeCoverageIgnoreEnd
 }