You are here

public function ResourceDecoratorBase::getResourceMachineName in RESTful 7.2

Gets the resource machine name.

Return value

string The machine name.

Overrides ResourceInterface::getResourceMachineName

1 method overrides ResourceDecoratorBase::getResourceMachineName()
CacheDecoratedResource::getResourceMachineName in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Gets the resource machine name.

File

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

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

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