/** * {@inheritdoc} */ public function build() { $entity_type = $this->getDerivativeId(); if ($this->routematch->getMasterRouteMatch()->getParameter($entity_type)) { return array('#theme' => 'links__entity__printable', '#links' => $this->linkBuilder->buildLinks($this->routematch->getMasterRouteMatch()->getParameter($entity_type))); } }