getEntity($row) ? parent::render($row) : []; } /** * {@inheritdoc} */ protected function getUrlInfo(ResultRow $row) { $template = $this->getEntityLinkTemplate(); return $this->getEntity($row)->urlInfo($template); } /** * Returns the entity link template name identifying the link route. * * @returns string * The link template name. */ protected function getEntityLinkTemplate() { return 'canonical'; } /** * {@inheritdoc} */ protected function getDefaultLabel() { return $this->t('view'); } }