/** * {@inheritDoc} */ public function getName(BlockInterface $block = null) { if (!$block || !$block->getReference()) { return 'Shared'; } return sprintf('%s (shared)', $this->getReferenceService($block)->getName($block->getReference())); }
/** * 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()); }