You are here

public function PageListBuilder::buildRow in Page Manager 8

Same name and namespace in other branches
  1. 8.4 page_manager_ui/src/Entity/PageListBuilder.php \Drupal\page_manager_ui\Entity\PageListBuilder::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

page_manager_ui/src/Entity/PageListBuilder.php, line 33
Contains \Drupal\page_manager_ui\Entity\PageListBuilder.

Class

PageListBuilder
Provides a list builder for page entities.

Namespace

Drupal\page_manager_ui\Entity

Code

public function buildRow(EntityInterface $entity) {

  /** @var \Drupal\page_manager\PageInterface $entity */
  $row['label'] = $entity
    ->label();
  $row['id'] = $entity
    ->id();
  $row['path'] = $this
    ->getPath($entity);
  return $row + parent::buildRow($entity);
}