class TeamInvitationPermissionProvider in Apigee Edge 8
Provides permission for team_invitation.
Hierarchy
- class \Drupal\entity\EntityPermissionProviderBase implements EntityHandlerInterface, EntityPermissionProviderInterface uses StringTranslationTrait
- class \Drupal\entity\EntityPermissionProvider
- class \Drupal\apigee_edge_teams\Entity\TeamInvitationPermissionProvider
- class \Drupal\entity\EntityPermissionProvider
Expanded class hierarchy of TeamInvitationPermissionProvider
File
- modules/
apigee_edge_teams/ src/ Entity/ TeamInvitationPermissionProvider.php, line 29
Namespace
Drupal\apigee_edge_teams\EntityView source
class TeamInvitationPermissionProvider extends EntityPermissionProvider {
/**
* {@inheritdoc}
*/
public function buildPermissions(EntityTypeInterface $entity_type) {
$permissions['administer team_invitation'] = [
'title' => $this
->t('Administer team invitation settings'),
'provider' => 'apigee_edge_teams',
'restrict access' => TRUE,
];
$permissions['accept own team invitation'] = [
'title' => $this
->t('Accept own team invitation'),
'provider' => 'apigee_edge_teams',
];
$permissions['accept any team invitation'] = [
'title' => $this
->t('Accept any team invitation'),
'provider' => 'apigee_edge_teams',
'restrict access' => TRUE,
];
$permissions['decline own team invitation'] = [
'title' => $this
->t('Decline own team invitation'),
'provider' => 'apigee_edge_teams',
];
$permissions['decline any team invitation'] = [
'title' => $this
->t('Decline any team invitation'),
'provider' => 'apigee_edge_teams',
'restrict access' => TRUE,
];
return $permissions;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityPermissionProvider:: |
protected | function |
Builds permissions for the bundle granularity. Overrides EntityPermissionProviderBase:: |
|
EntityPermissionProvider:: |
protected | function |
Builds permissions for the entity_type granularity. Overrides EntityPermissionProviderBase:: |
|
EntityPermissionProviderBase:: |
protected | property | The entity type bundle info. | |
EntityPermissionProviderBase:: |
public static | function |
Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface:: |
|
EntityPermissionProviderBase:: |
protected | function | Adds the provider and converts the titles to strings to allow sorting. | |
EntityPermissionProviderBase:: |
public | function | Constructs a new EntityPermissionProvider object. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TeamInvitationPermissionProvider:: |
public | function |
Builds permissions for the given entity type. Overrides EntityPermissionProviderBase:: |