You are here

public function Resource::getResourceName in RESTful 7.2

Gets the resource name.

@returns string The name of the current resource.

Overrides ResourceInterface::getResourceName

File

src/Plugin/resource/Resource.php, line 216
Contains \Drupal\restful\Plugin\resource\Resource.

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

public function getResourceName() {
  $definition = $this
    ->getPluginDefinition();
  return $definition['name'];
}