You are here

public function MigrationGroupListBuilder::buildRow in Migrate Tools 8

Same name and namespace in other branches
  1. 8.5 src/Controller/MigrationGroupListBuilder.php \Drupal\migrate_tools\Controller\MigrationGroupListBuilder::buildRow()
  2. 8.2 src/Controller/MigrationGroupListBuilder.php \Drupal\migrate_tools\Controller\MigrationGroupListBuilder::buildRow()
  3. 8.3 src/Controller/MigrationGroupListBuilder.php \Drupal\migrate_tools\Controller\MigrationGroupListBuilder::buildRow()
  4. 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\Controller

Code

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);
}