You are here

public function ServiceDefinitionBase::processRoute in Services 8.4

Same name and namespace in other branches
  1. 9.0.x src/ServiceDefinitionBase.php \Drupal\services\ServiceDefinitionBase::processRoute()

Checks access for the ServiceDefintion.

Parameters

\Symfony\Component\Routing\Route $route: The route match object.

Overrides ServiceDefinitionInterface::processRoute

7 methods override ServiceDefinitionBase::processRoute()
EntityDelete::processRoute in src/Plugin/ServiceDefinition/EntityDelete.php
Checks access for the ServiceDefintion.
EntityGet::processRoute in src/Plugin/ServiceDefinition/EntityGet.php
Checks access for the ServiceDefintion.
EntityPost::processRoute in src/Plugin/ServiceDefinition/EntityPost.php
Checks access for the ServiceDefintion.
EntityPut::processRoute in src/Plugin/ServiceDefinition/EntityPut.php
Checks access for the ServiceDefintion.
EntityView::processRoute in src/Plugin/ServiceDefinition/EntityView.php
Checks access for the ServiceDefintion.

... See full list

File

src/ServiceDefinitionBase.php, line 66

Class

ServiceDefinitionBase
Class \Drupal\services\ServiceDefinitionBase.

Namespace

Drupal\services

Code

public function processRoute(Route $route) {
  $route
    ->addRequirements([
    '_access' => 'TRUE',
  ]);
}