public function RelationTypeListBuilder::buildRow in Relation 8
Same name and namespace in other branches
- 8.2 src/RelationTypeListBuilder.php \Drupal\relation\RelationTypeListBuilder::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/
RelationTypeListBuilder.php, line 29 - Contains \Drupal\relation\RelationTypeListBuilder.
Class
- RelationTypeListBuilder
- Provides a listing of relation types.
Namespace
Drupal\relationCode
public function buildRow(EntityInterface $entity) {
$row['title'] = array(
'data' => $this
->getLabel($entity),
'class' => array(
'menu-label',
),
);
return $row + parent::buildRow($entity);
}