You are here

public function QuizQuestionTypeListBuilder::buildRow in Quiz 8.5

Same name and namespace in other branches
  1. 8.6 src/Config/Entity/QuizQuestionTypeListBuilder.php \Drupal\quiz\Config\Entity\QuizQuestionTypeListBuilder::buildRow()
  2. 6.x src/Config/Entity/QuizQuestionTypeListBuilder.php \Drupal\quiz\Config\Entity\QuizQuestionTypeListBuilder::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/QuizQuestionTypeListBuilder.php, line 30

Class

QuizQuestionTypeListBuilder
Defines the list builder for quiz question types.

Namespace

Drupal\quiz\Config\Entity

Code

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