public static function ResourceManagerInterface::executeCallback in RESTful 7.2
Execute a user callback.
Parameters
mixed $callback: There are 3 ways to define a callback:
- String with a function name. Ex: 'drupal_map_assoc'.
- An array containing an object and a method name of that object. Ex: array($this, 'format').
- An array containing any of the methods before and an array of parameters to pass to the callback. Ex: array(array($this, 'processing'), array('param1', 2))
array $params: Array of additional parameters to pass in.
Return value
mixed The return value of the callback.
Throws
1 method overrides ResourceManagerInterface::executeCallback()
- ResourceManager::executeCallback in src/
Resource/ ResourceManager.php - Execute a user callback.
File
- src/
Resource/ ResourceManagerInterface.php, line 99 - Contains \Drupal\restful\Resource\ResourceManagerInterface.
Class
Namespace
Drupal\restful\ResourceCode
public static function executeCallback($callback, array $params = array());