protected function UserFlagType::getExtraPermissionsOptions in Flag 8.4
Defines options for extra permissions.
Return value
array An array of options suitable for FormAPI.
Overrides EntityFlagType::getExtraPermissionsOptions
File
- src/
Plugin/ Flag/ UserFlagType.php, line 71
Class
- UserFlagType
- Provides a flag type for user entities.
Namespace
Drupal\flag\Plugin\FlagCode
protected function getExtraPermissionsOptions() {
$options = parent::getExtraPermissionsOptions();
// Tweak the UI label from the parent class.
$options['owner'] = $this
->t('Permissions for users to flag themselves.');
return $options;
}