You are here

public function FeatureListBuilder::buildRow in Configuration selector 8

Same name and namespace in other branches
  1. 8.2 src/FeatureListBuilder.php \Drupal\config_selector\FeatureListBuilder::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/FeatureListBuilder.php, line 40

Class

FeatureListBuilder
Builds a listing of Configuration Selector feature entities.

Namespace

Drupal\config_selector

Code

public function buildRow(EntityInterface $entity) {

  /** @var \Drupal\config_selector\Entity\FeatureInterface $entity */
  $row['name'] = $entity
    ->label();
  $row['description'] = $entity
    ->getDescription();
  return $row + parent::buildRow($entity);
}