public function MigrationGroupListBuilder::buildRow in Migrate Tools 8
Same name and namespace in other branches
- 8.5 src/Controller/MigrationGroupListBuilder.php \Drupal\migrate_tools\Controller\MigrationGroupListBuilder::buildRow()
- 8.2 src/Controller/MigrationGroupListBuilder.php \Drupal\migrate_tools\Controller\MigrationGroupListBuilder::buildRow()
- 8.3 src/Controller/MigrationGroupListBuilder.php \Drupal\migrate_tools\Controller\MigrationGroupListBuilder::buildRow()
- 8.4 src/Controller/MigrationGroupListBuilder.php \Drupal\migrate_tools\Controller\MigrationGroupListBuilder::buildRow()
Builds a row for an entity in the entity listing.
Parameters
EntityInterface $entity: The entity for which to build the row.
Return value
array A render array of the table row for displaying the entity.
Overrides EntityListBuilder::buildRow
See also
Drupal\Core\Entity\EntityListController::render()
File
- src/
Controller/ MigrationGroupListBuilder.php, line 49 - Contains Drupal\migrate_tools\Controller\MigrationGroupListBuilder.
Class
- MigrationGroupListBuilder
- Provides a listing of migration group entities.
Namespace
Drupal\migrate_tools\ControllerCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['machine_name'] = $entity
->id();
$row['description'] = $entity
->get('description');
$row['source_type'] = $entity
->get('source_type');
return $row + parent::buildRow($entity);
}