예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function collect(Request $request, Response $response, \Exception $exception = NULL)
 {
     $storage = $this->entityManager->getStorage('block');
     $loaded = $this->entityManager->getLoaded('block');
     $rendered = $this->entityManager->getRendered('block');
     if ($loaded) {
         $this->data['blocks']['loaded'] = $this->getBlocksData($loaded, $storage);
     }
     if ($rendered) {
         $this->data['blocks']['rendered'] = $this->getBlocksData($rendered, $storage);
     }
 }