You are here

public function FieldPermissionsController::content in Field Permissions 8

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

Content to page report all field permissions settings.

Build table to Path: 'admin/reports/fields/permissions'.

1 string reference to 'FieldPermissionsController::content'
field_permissions.routing.yml in ./field_permissions.routing.yml
field_permissions.routing.yml

File

src/Controller/FieldPermissionsController.php, line 77

Class

FieldPermissionsController
Define FieldPermissionsController.

Namespace

Drupal\field_permissions\Controller

Code

public function content() {
  $build['table'] = [
    '#type' => 'table',
    '#header' => $this
      ->buildHeader(),
    '#title' => $this
      ->getTitle(),
    '#rows' => $this
      ->buildRows(),
  ];
  $build['#attached']['library'] = 'field_permissions/field_permissions';
  return $build;
}