Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function getName(BlockInterface $block = null)
 {
     if (!$block || !$block->getReference()) {
         return 'Shared';
     }
     return sprintf('%s (shared)', $this->getReferenceService($block)->getName($block->getReference()));
 }
Ejemplo n.º 2
0
 /**
  * Returns if ESI is enabled on the reference service.
  *
  * {@inheritdoc}
  */
 public function isEsiEnabled(BlockInterface $block)
 {
     if (!$block || !$block->getReference()) {
         return $this->esiEnabled;
     }
     return $this->getReferenceService($block)->isEsiEnabled($block->getReference());
 }