public function ElevateZoomPlusListBuilder::buildRow in ElevateZoom Plus 8
Same name and namespace in other branches
- 7 modules/ui/src/Controller/ElevateZoomPlusListBuilder.php \Drupal\elevatezoomplus_ui\Controller\ElevateZoomPlusListBuilder::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 DraggableListBuilder::buildRow
See also
\Drupal\Core\Entity\EntityListBuilder::render()
File
- modules/
ui/ src/ Controller/ ElevateZoomPlusListBuilder.php, line 36
Class
- ElevateZoomPlusListBuilder
- Provides a listing of ElevateZoomPlus optionsets.
Namespace
Drupal\elevatezoomplus_ui\ControllerCode
public function buildRow(EntityInterface $entity) {
$row['label'] = Html::escape($entity
->label());
$row['responsive']['#markup'] = $entity
->getSetting('responsive') ? $this
->t('Yes') : $this
->t('No');
return $row + parent::buildRow($entity);
}