You are here

public function TeamPermission::summaryTitle in Apigee Edge 8

Returns the summary of the settings in the display.

Overrides AccessPluginBase::summaryTitle

File

modules/apigee_edge_teams/src/Plugin/views/access/TeamPermission.php, line 148

Class

TeamPermission
Access plugin for team-permission-based access control.

Namespace

Drupal\apigee_edge_teams\Plugin\views\access

Code

public function summaryTitle() {
  $permissions = $this->teamPermissionHandler
    ->getPermissions();
  if (isset($permissions[$this->options['permission']])) {
    return $permissions[$this->options['permission']]
      ->getLabel();
  }
  return $this
    ->t($this->options['permission']);
}