t('Environment name'); $row['url'] = $this->t('Environment url'); $row += parent::buildHeader(); return $row; } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { /* @var \Drupal\environment_indicator\Entity\EnvironmentIndicator $entity */ $row = [ 'style' => 'color: ' . $entity->getFgColor() . '; background-color: ' . $entity->getBgColor() . ';', ]; $row['data']['name'] = [ 'data' => $entity->label(), ]; $row['data']['url'] = [ 'data' => $entity->getUrl(), ]; $row['data'] += parent::buildRow($entity); return $row; } /** * {@inheritdoc} */ public function render() { $build['action_header']['#markup'] = '