public function CourseObjectTypeListBuilder::buildRow in Course 3.x
Same name and namespace in other branches
- 8.3 src/Config/Entity/CourseObjectTypeListBuilder.php \Drupal\course\Config\Entity\CourseObjectTypeListBuilder::buildRow()
- 8.2 src/Config/Entity/CourseObjectTypeListBuilder.php \Drupal\course\Config\Entity\CourseObjectTypeListBuilder::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/ CourseObjectTypeListBuilder.php, line 24
Class
- CourseObjectTypeListBuilder
- Defines the list builder for profile types.
Namespace
Drupal\course\Config\EntityCode
public function buildRow(EntityInterface $entity) {
$row['type'] = $entity
->toLink(NULL, 'edit-form');
return $row + parent::buildRow($entity);
}