public function Main__1_2::callback in RESTful 7.2
Return a computed value.
Parameters
DataInterpreterInterface $interpreter: The data interpreter.
Return value
mixed The output for the computed field.
File
- tests/
modules/ restful_test/ src/ Plugin/ resource/ entity_test/ main/ v1/ Main__1_2.php, line 72 - Contains \Drupal\restful_test\Plugin\resource\entity_test\main\v1\Main__1_2.
Class
- Main__1_2
- Class Main__1_2 @package Drupal\restful_test\Plugin\resource
Namespace
Drupal\restful_test\Plugin\resource\entity_test\main\v1Code
public function callback(DataInterpreterInterface $interpreter) {
return 'callback';
}