You are here

public static function RestfulManager::isRestfulPath in RESTful 7.2

Checks if the passed in request belongs to RESTful.

Parameters

RequestInterface $request: The path to check.

Return value

bool TRUE if the path belongs to RESTful.

2 calls to RestfulManager::isRestfulPath()
AuthenticationManager::getAccount in src/Authentication/AuthenticationManager.php
Get the user account for the request.
CookieAuthentication::authenticate in src/Plugin/authentication/CookieAuthentication.php
Authenticate the request by trying to match a user.

File

src/RestfulManager.php, line 221
Contains \Drupal\restful\RestfulManager.

Class

RestfulManager

Namespace

Drupal\restful

Code

public static function isRestfulPath(RequestInterface $request) {
  return ResourceManager::getPageCallback($request
    ->getPath(FALSE)) == static::FRONT_CONTROLLER_CALLBACK;
}