t('Style name'); return $header + parent::buildHeader(); } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { $row['label'] = $entity->label(); return $row + parent::buildRow($entity); } /** * {@inheritdoc} */ public function getDefaultOperations(EntityInterface $entity) { $flush = [ 'title' => t('Flush'), 'weight' => 200, 'url' => $entity->urlInfo('flush-form'), ]; return parent::getDefaultOperations($entity) + [ 'flush' => $flush, ]; } /** * {@inheritdoc} */ public function render() { $build = parent::render(); $build['table']['#empty'] = $this->t('There are currently no styles. Add a new one.', [ ':url' => Url::fromRoute('image.style_add')->toString(), ]); return $build; } }