You are here

public function ResourceDecoratorBase::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'.

Overrides ResourceInterface::controllersInfo

See also

getControllers()

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 156
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function controllersInfo() {
  return $this->subject
    ->controllersInfo();
}