public static function PublishContentPermissions::getPermission in Publish Content 8
Returns the name of the permission.
Parameters
string $pattern: The pattern for FormattableMarkup.
array $arguments: The argument for FormattableMarkup.
Return value
string The name of the permission.
1 call to PublishContentPermissions::getPermission()
- PublishContentAccess::checkPermission in src/
Access/ PublishContentAccess.php - Helper method to check permission of user.
File
- src/
PublishContentPermissions.php, line 38
Class
- PublishContentPermissions
- Handles permissions.
Namespace
Drupal\publishcontentCode
public static function getPermission($pattern, array $arguments = NULL) {
return (new FormattableMarkup($pattern, $arguments))
->__toString();
}