public function SettingsProfileListBuilder::buildRow in Backup and Migrate 8.4
Same name and namespace in other branches
- 5.0.x src/Controller/SettingsProfileListBuilder.php \Drupal\backup_migrate\Controller\SettingsProfileListBuilder::buildRow()
Builds a row for an entity in the entity listing.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.
Return value
array A render array structure of fields for this entity.
Overrides EntityListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- src/
Controller/ SettingsProfileListBuilder.php, line 28
Class
- SettingsProfileListBuilder
- Provides a listing of Settings Profile entities.
Namespace
Drupal\backup_migrate\ControllerCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
$row['compression'] = $entity->config['compressor']['compression'];
$row['offline'] = $entity->config['utils']['site_offline'];
$row['description'] = $entity->config['metadata']['description'];
return $row + parent::buildRow($entity);
}