You are here

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

ResourceDecoratorInterface

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function getPrimaryResource();