public function ShareMessageListBuilder::buildRow in Share Message 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 EntityListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- src/
Entity/ Handler/ ShareMessageListBuilder.php, line 25
Class
- ShareMessageListBuilder
- Provides a listing of Share Messages.
Namespace
Drupal\sharemessage\Entity\HandlerCode
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\sharemessage\ShareMessageInterface $entity */
$row['label'] = $entity
->label();
$row['plugin'] = $entity
->getPluginId();
return $row + parent::buildRow($entity);
}