You are here

function restful in RESTful 7.2

Get the RestfulManager.

Calling restful() from anywhere in the code will give you access to the RestfulManager. That in turn will provide you access to all the elements involved.

Return value

RestfulManager The manager.

11 string references to 'restful'
CacheFragmentController::createCacheFragments in src/RenderCache/Entity/CacheFragmentController.php
Creates all the caches tags from the tag collection.
DataProvider::addExtraInfoToQuery in src/Plugin/resource/DataProvider/DataProvider.php
Adds query tags and metadata to the EntityFieldQuery.
DataProviderDbQuery::addExtraInfoToQuery in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Adds query tags and metadata to the EntityFieldQuery.
DataProviderEntity::getQueryCount in src/Plugin/resource/DataProvider/DataProviderEntity.php
Prepare a query for RestfulEntityBase::count().
DataProviderEntity::getQueryForList in src/Plugin/resource/DataProvider/DataProviderEntity.php
Prepare a query for RestfulEntityBase::getList().

... See full list

File

./restful.module, line 156

Code

function restful() {
  static $manager;
  if (!isset($manager)) {
    $manager = RestfulManager::createFromGlobals();
  }
  return $manager;
}