/** * Get an entity layout block content entity based on the route match * parameters. * * @return EntityLayoutBlockInterface */ protected function getEntityLayoutBlockFromRouteMatch() { if (!$this->entityLayoutBlock) { $parameters = $this->getRouteMatch()->getParameters()->all(); $this->entityLayoutBlock = $this->entityLayoutService->getContentBlockByUuid($parameters['block_id']); } return $this->entityLayoutBlock; }