You are here

public function ResourceInterface::controllersInfo in RESTful 7.2

Gets the controllers.

Return value

array An structured configuration array. Contains the regular expression for the path as the key and an array of key values as its value. That array of key values contains the HTTP method as the key and the name of the public method to execute as the value. If an access callback is needed one can be provided by turning the value into an array with the keys: 'callback' and 'access callback'.

See also

getControllers()

2 methods override ResourceInterface::controllersInfo()
Resource::controllersInfo in src/Plugin/resource/Resource.php
Gets the controllers.
ResourceDecoratorBase::controllersInfo in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Gets the controllers.

File

src/Plugin/resource/ResourceInterface.php, line 175
Contains \Drupal\restful\Plugin\resource\ResourceInterface.

Class

ResourceInterface
Interface ResourceInterface.

Namespace

Drupal\restful\Plugin\resource

Code

public function controllersInfo();