function EntityDisplayModeListBuilder::buildRow

Same name and namespace in other branches
  1. 11.x core/modules/field_ui/src/EntityDisplayModeListBuilder.php \Drupal\field_ui\EntityDisplayModeListBuilder::buildRow()

File

core/modules/field_ui/src/EntityDisplayModeListBuilder.php, line 67

Class

EntityDisplayModeListBuilder
Defines a class to build a listing of view mode entities.

Namespace

Drupal\field_ui

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.