You are here

public function CourseTypeListBuilder::buildRow in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Config/Entity/CourseTypeListBuilder.php \Drupal\course\Config\Entity\CourseTypeListBuilder::buildRow()
  2. 8.2 src/Config/Entity/CourseTypeListBuilder.php \Drupal\course\Config\Entity\CourseTypeListBuilder::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/Config/Entity/CourseTypeListBuilder.php, line 30

Class

CourseTypeListBuilder
Defines the list builder for profile types.

Namespace

Drupal\course\Config\Entity

Code

public function buildRow(EntityInterface $entity) {
  $row['type'] = $entity
    ->toLink(NULL, 'edit-form');
  return $row + parent::buildRow($entity);
}