public function ResourceInterface::discover in RESTful 7.2
Discovery controller callback.
Parameters
string $path: The requested path.
Return value
array The resource field collection with the discovery information.
2 methods override ResourceInterface::discover()
- Resource::discover in src/
Plugin/ resource/ Resource.php - Discovery controller callback.
- ResourceDecoratorBase::discover in src/
Plugin/ resource/ Decorators/ ResourceDecoratorBase.php - Discovery controller callback.
File
- src/
Plugin/ resource/ ResourceInterface.php, line 384 - Contains \Drupal\restful\Plugin\resource\ResourceInterface.
Class
- ResourceInterface
- Interface ResourceInterface.
Namespace
Drupal\restful\Plugin\resourceCode
public function discover($path = NULL);