You are here

public static function ResourceManager::getPageCallback in RESTful 7.2

Get the menu item callback.

Parameters

string $path: The path to match the router item. Leave it empty to use the current one.

Return value

string The callback function to be executed.

Overrides ResourceManagerInterface::getPageCallback

1 call to ResourceManager::getPageCallback()
RestfulManager::isRestfulPath in src/RestfulManager.php
Checks if the passed in request belongs to RESTful.

File

src/Resource/ResourceManager.php, line 245
Contains \Drupal\restful\Resource\ResourceManager.

Class

ResourceManager

Namespace

Drupal\restful\Resource

Code

public static function getPageCallback($path = NULL) {
  $router_item = static::getMenuItem($path);
  return isset($router_item['page_callback']) ? $router_item['page_callback'] : NULL;
}