Skip to content
Snippets Groups Projects

Issue #3207584: Improving the informativeness of the list of entities

@@ -14,8 +14,9 @@ class HTTPStatusEntityListBuilder extends ConfigEntityListBuilder {
* {@inheritdoc}
*/
public function buildHeader() {
$header['label'] = $this->t('HTTP Status entities');
$header['id'] = $this->t('Machine name');
$header['label'] = $this->t('Label');
$header['url'] = $this->t('Url');
$header['status_code'] = $this->t('Status');
return $header + parent::buildHeader();
}
@@ -24,7 +25,8 @@ class HTTPStatusEntityListBuilder extends ConfigEntityListBuilder {
*/
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity->label();
$row['id'] = $entity->id();
$row['url'] = $entity->get('url');
$row['status_code'] = $entity->get('status_code');
return $row + parent::buildRow($entity);
}
Loading