You are here

protected function FieldPermissionsController::buildRows in Field Permissions 8

Same name and namespace in other branches
  1. 8.2 src/Controller/FieldPermissionsController.php \Drupal\field_permissions\Controller\FieldPermissionsController::buildRows()

Build table rows.

1 call to FieldPermissionsController::buildRows()
FieldPermissionsController::content in src/Controller/FieldPermissionsController.php
Content to page report all field permissions settings.

File

src/Controller/FieldPermissionsController.php, line 115

Class

FieldPermissionsController
Define FieldPermissionsController.

Namespace

Drupal\field_permissions\Controller

Code

protected function buildRows() {

  /** @var \Drupal\field\FieldStorageConfigInterface $instances */
  $instances = $this->entityTypeManager
    ->getStorage('field_storage_config')
    ->loadMultiple();
  $rows = [];
  foreach ($instances as $key => $instance) {
    $rows[] = $this
      ->buildRow($instance);
  }
  return $rows;
}