summaryrefslogtreecommitdiffstats
path: root/core/modules/rest/src/Plugin/ResourceBase.php
diff options
context:
space:
mode:
authorAlex Pott2014-07-29 08:48:31 (GMT)
committerAlex Pott2014-07-29 08:48:31 (GMT)
commit4a45c16b0aa2125580f768e4dd05dad7695c309f (patch)
tree9c36d4031187de32ea831f8c29efa65889d685b8 /core/modules/rest/src/Plugin/ResourceBase.php
parent9bbfedec849dee339ae7c66c03057a1e29141de2 (diff)
Issue #2310705 by lokeoke, tim.plunkett, dawehner: AccessManager should introduce constants for 'ANY' / 'ALL'.
Diffstat (limited to 'core/modules/rest/src/Plugin/ResourceBase.php')
-rw-r--r--core/modules/rest/src/Plugin/ResourceBase.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/rest/src/Plugin/ResourceBase.php b/core/modules/rest/src/Plugin/ResourceBase.php
index 54308fc..cab3b59 100644
--- a/core/modules/rest/src/Plugin/ResourceBase.php
+++ b/core/modules/rest/src/Plugin/ResourceBase.php
@@ -7,6 +7,7 @@
namespace Drupal\rest\Plugin;
+use Drupal\Core\Access\AccessManagerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Plugin\PluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -194,7 +195,7 @@ abstract class ResourceBase extends PluginBase implements ContainerFactoryPlugin
'_method' => $method,
'_permission' => "restful $lower_method $this->pluginId",
), array(
- '_access_mode' => 'ANY',
+ '_access_mode' => AccessManagerInterface::ACCESS_MODE_ANY,
));
return $route;
}