public function GroupMenuContentListBuilder::buildRow in Group Menu 8
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 GroupContentListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- src/
GroupMenuContentListBuilder.php, line 58
Class
- GroupMenuContentListBuilder
- Provides a list controller for menus entities in a group.
Namespace
Drupal\groupmenuCode
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\group\Entity\GroupContentInterface $entity */
$row['id'] = $entity
->id();
$row['label']['data'] = $entity
->getEntity()
->toLink(NULL, 'edit-form');
$row = $row + parent::buildRow($entity);
unset($row['entity_type'], $row['plugin']);
return $row;
}