You are here

public function Permission::summaryTitle in Views (for Drupal 7) 8.3

Return a string to display as the clickable title for the access control.

Overrides AccessPluginBase::summaryTitle

File

lib/Views/user/Plugin/views/access/Permission.php, line 40
Definition of Views\user\Plugin\views\access\Permission.

Class

Permission
Access plugin that provides permission-based access control.

Namespace

Views\user\Plugin\views\access

Code

public function summaryTitle() {
  $permissions = module_invoke_all('permission');
  if (isset($permissions[$this->options['perm']])) {
    return $permissions[$this->options['perm']]['title'];
  }
  return t($this->options['perm']);
}