public function GroupPermission::summaryTitle in Group 8
Same name and namespace in other branches
- 2.0.x src/Plugin/views/access/GroupPermission.php \Drupal\group\Plugin\views\access\GroupPermission::summaryTitle()
Returns the summary of the settings in the display.
Overrides AccessPluginBase::summaryTitle
File
- src/
Plugin/ views/ access/ GroupPermission.php, line 126
Class
- GroupPermission
- Access plugin that provides group permission-based access control.
Namespace
Drupal\group\Plugin\views\accessCode
public function summaryTitle() {
$permissions = $this->permissionHandler
->getPermissions(TRUE);
if (isset($permissions[$this->options['group_permission']])) {
return $permissions[$this->options['group_permission']]['title'];
}
return $this
->t($this->options['group_permission']);
}