You are here

public static function RestfulEntityBase::controllersInfo in RESTful 7

Overrides \RestfulDataProviderEFQ::controllersInfo().

Overrides RestfulBase::controllersInfo

1 call to RestfulEntityBase::controllersInfo()
RestfulTestArticlesResource__1_3::controllersInfo in tests/modules/restful_test/plugins/restful/node/test_articles/1.3/RestfulTestArticlesResource__1_3.class.php
Overrides \RestfulDataProviderEFQ::controllersInfo().
8 methods override RestfulEntityBase::controllersInfo()
RestfulAccessTokenAuthentication::controllersInfo in modules/restful_token_auth/plugins/restful/restful_token_auth/token_auth/access_token/1.0/RestfulAccessTokenAuthentication.class.php
Overrides \RestfulBase::controllersInfo().
RestfulEntityBaseMultipleBundles::controllersInfo in plugins/restful/RestfulEntityBaseMultipleBundles.php
Overrides \RestfulBase::controllersInfo().
RestfulExampleRoleResource::controllersInfo in modules/restful_example/plugins/restful/node/per_role_content/1.0/RestfulExampleRoleResource.class.php
Overrides \RestfulBase::controllersInfo().
RestfulFilesUpload::controllersInfo in plugins/restful/RestfulFilesUpload.php
Overrides \RestfulBase::controllersInfo().
RestfulRefreshTokenAuthentication::controllersInfo in modules/restful_token_auth/plugins/restful/restful_token_auth/token_auth/refresh_token/1.0/RestfulRefreshTokenAuthentication.class.php
Overrides \RestfulBase::controllersInfo().

... See full list

File

plugins/restful/RestfulEntityBase.php, line 83
Contains RestfulEntityBase.

Class

RestfulEntityBase
An abstract implementation of RestfulEntityInterface.

Code

public static function controllersInfo() {
  return array(
    '' => array(
      // GET returns a list of entities.
      \RestfulInterface::GET => 'getList',
      \RestfulInterface::HEAD => 'getList',
      // POST
      \RestfulInterface::POST => 'createEntity',
    ),
    '^.*$' => array(
      \RestfulInterface::GET => 'viewEntities',
      \RestfulInterface::HEAD => 'viewEntities',
      \RestfulInterface::PUT => 'putEntity',
      \RestfulInterface::PATCH => 'patchEntity',
      \RestfulInterface::DELETE => 'deleteEntity',
    ),
  );
}