public function OembedProviderBucketListBuilder::buildRow in oEmbed Providers 2.x
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/
OembedProviderBucketListBuilder.php, line 39
Class
- OembedProviderBucketListBuilder
- Provides a listing of custom oEmbed provider buckets.
Namespace
Drupal\oembed_providersCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
$row['id'] = $entity
->id();
$row['description'] = $entity
->get('description');
return $row + parent::buildRow($entity);
}