Skip to content
Snippets Groups Projects

Resolve #3227007 "Make entity list"

2 files
+ 50
43
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -15,6 +15,11 @@ class CronMigrationListBuilder extends ConfigEntityListBuilder {
*/
public function buildHeader() {
$header['label'] = $this->t('Label');
$header['status'] = $this->t('Status');
$header['interval'] = $this->t('Interval');
$header['update'] = $this->t('Update');
$header['sync'] = $this->t('Sync');
$header['ignore_dependencies'] = $this->t('Ignore dependencies');
$header['id'] = $this->t('Machine name');
return $header + parent::buildHeader();
}
@@ -24,6 +29,11 @@ class CronMigrationListBuilder extends ConfigEntityListBuilder {
*/
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity->label();
$row['status'] = $entity->get('status') ? '✔' : '✖';
$row['interval'] = ($entity->get('time') / 60) . ' min';
$row['update'] = $entity->get('update') ? '✔' : '✖';
$row['sync'] = $entity->get('sync') ? '✔' : '✖';
$row['ignore_dependencies'] = $entity->get('ignore_dependencies') ? '✔' : '✖';
$row['id'] = $entity->id();
return $row + parent::buildRow($entity);
}
Loading