public function ResourceDecoratorInterface::getPrimaryResource in RESTful 7.2
Gets the primary resource, the one that is not a decorator.
Return value
ResourceInterface The resource.
1 method overrides ResourceDecoratorInterface::getPrimaryResource()
- ResourceDecoratorBase::getPrimaryResource in src/
Plugin/ resource/ Decorators/ ResourceDecoratorBase.php - Gets the primary resource, the one that is not a decorator.
File
- src/
Plugin/ resource/ Decorators/ ResourceDecoratorInterface.php, line 29 - Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorInterface.
Class
Namespace
Drupal\restful\Plugin\resource\DecoratorsCode
public function getPrimaryResource();