You are here

public function ResourceDecoratorBase::getResourceName in RESTful 7.2

Gets the resource name.

@returns string The name of the current resource.

Overrides ResourceInterface::getResourceName

1 call to ResourceDecoratorBase::getResourceName()
CacheDecoratedResource::invalidateResourceCache in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Invalidates the resource cache for the given resource on the provided id.

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 142
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function getResourceName() {
  return $this->subject
    ->getResourceName();
}