public function DomainPathListBuilder::buildRow in Domain Path 8
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/ DomainPathListBuilder.php, line 119
Class
- DomainPathListBuilder
- Provides a list controller for domain_path entity.
Namespace
Drupal\domain_path\ControllerCode
public function buildRow(EntityInterface $entity) {
/* @var $entity \Drupal\domain_path\Entity\DomainPath */
$row['id'] = $entity
->id();
$row['language'] = $entity
->get('language')->value;
$row['domain_id'] = $entity
->get('domain_id')->target_id;
$row['source'] = $entity
->get('source')->value;
$row['alias'] = $entity
->get('alias')->value;
return $row + parent::buildRow($entity);
}