You are here

public function ImageAPIOptimizePipelineListBuilder::buildRow in Image Optimize (or ImageAPI Optimize) 8.2

Same name and namespace in other branches
  1. 8.3 src/ImageAPIOptimizePipelineListBuilder.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineListBuilder::buildRow()
  2. 4.x src/ImageAPIOptimizePipelineListBuilder.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineListBuilder::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/ImageAPIOptimizePipelineListBuilder.php, line 63

Class

ImageAPIOptimizePipelineListBuilder
Defines a class to build a listing of image optimize pipeline entities.

Namespace

Drupal\imageapi_optimize

Code

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