You are here

public function BUEditorButtonListBuilder::buildRow in BUEditor 8

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

Class

BUEditorButtonListBuilder
Defines a class to build a list of BUEditor Button entities.

Namespace

Drupal\bueditor

Code

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