LinkConfigurationStorageListBuilder.php in Menu Token 8
File
src/LinkConfigurationStorageListBuilder.php
View source
<?php
namespace Drupal\menu_token;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface;
class LinkConfigurationStorageListBuilder extends ConfigEntityListBuilder {
public function buildHeader() {
$header['label'] = $this
->t('Link configuration storage');
$header['id'] = $this
->t('Machine name');
$header['linkid'] = $this
->t('Link id');
$header['configurationSerialized'] = $this
->t('Serialized configuration');
return $header + parent::buildHeader();
}
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
$row['linkid'] = $entity->linkid;
$row['configurationSerialized'] = $entity->configurationSerialized;
return $row + parent::buildRow($entity);
}
}