You are here

public function BUEditorEditorListBuilder::buildRow in BUEditor 8

Same name and namespace in other branches
  1. 8.2 src/BUEditorEditorListBuilder.php \Drupal\bueditor\BUEditorEditorListBuilder::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/BUEditorEditorListBuilder.php, line 28

Class

BUEditorEditorListBuilder
Defines a class to build a list of BUEditor Editor entities.

Namespace

Drupal\bueditor

Code

public function buildRow(EntityInterface $bueditor_editor) {
  $row['label'] = $bueditor_editor
    ->label();
  $row['description'] = $bueditor_editor
    ->get('description');
  $row['toolbar'] = implode(', ', $bueditor_editor
    ->getToolbar());
  return $row + parent::buildRow($bueditor_editor);
}