function ShortcutSetResourceTestBase::getExpectedUnauthorizedAccessMessage
Overrides EntityResourceTestBase::getExpectedUnauthorizedAccessMessage
File
- 
              core/modules/ shortcut/ tests/ src/ Functional/ Rest/ ShortcutSetResourceTestBase.php, line 94 
Class
- ShortcutSetResourceTestBase
- Resource test base for ShortcutSet entity.
Namespace
Drupal\Tests\shortcut\Functional\RestCode
protected function getExpectedUnauthorizedAccessMessage($method) {
  switch ($method) {
    case 'GET':
      return "The 'access shortcuts' permission is required.";
    default:
      return parent::getExpectedUnauthorizedAccessMessage($method);
  }
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
