t('Name'); $header['description'] = [ 'data' => $this->t('Description'), 'class' => [RESPONSIVE_PRIORITY_MEDIUM], ]; return $header + parent::buildHeader(); } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { $row['title'] = [ 'data' => $entity->label(), 'class' => ['menu-label'], ]; $row['description'] = Xss::filterAdmin($entity->getDescription()); return $row + parent::buildRow($entity); } /** * {@inheritdoc} */ public function render() { $build = parent::render(); $build['#empty'] = $this->t('No media bundle available. Add media bundle.', [ '@link' => Url::fromRoute('entity.media_bundle.add_form')->toString(), ]); return $build; } }