You are here

public function MandrillActivityListBuilder::buildRow in Mandrill 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

modules/mandrill_activity/src/Controller/MandrillActivityListBuilder.php, line 32
Contains \Drupal\mandrill_activity\Controller\MandrillActivityListBuilder.

Class

MandrillActivityListBuilder
Provides a listing of MandrillActivity entities.

Namespace

Drupal\mandrill_activity\Controller

Code

public function buildRow(EntityInterface $entity) {
  $row['label'] = $entity
    ->label() . ' (Machine name: ' . $entity
    ->id() . ')';
  return $row + parent::buildRow($entity);
}