You are here

public static function RestfulTestArticlesResource__1_3::controllersInfo in RESTful 7

Overrides \RestfulDataProviderEFQ::controllersInfo().

Overrides RestfulEntityBase::controllersInfo

File

tests/modules/restful_test/plugins/restful/node/test_articles/1.3/RestfulTestArticlesResource__1_3.class.php, line 13
Contains RestfulExampleArticlesResource__1_3.

Class

RestfulTestArticlesResource__1_3
@file Contains RestfulExampleArticlesResource__1_3.

Code

public static function controllersInfo() {
  $info = parent::controllersInfo();
  $info['^.*$'][\RestfulInterface::GET] = array(
    'callback' => 'viewEntities',
    'access callback' => 'accessViewEntityFalse',
  );
  $info['^.*$'][\RestfulInterface::HEAD] = array(
    'callback' => 'viewEntities',
    'access callback' => 'accessViewEntityTrue',
  );
  return $info;
}