You are here

public function Resource::getResourceMachineName in RESTful 7.2

Gets the resource machine name.

Return value

string The machine name.

Overrides ResourceInterface::getResourceMachineName

2 calls to Resource::getResourceMachineName()
Resource::dataProviderFactory in src/Plugin/resource/Resource.php
Data provider factory.
ResourceEntity::dataProviderFactory in src/Plugin/resource/ResourceEntity.php
Data provider factory.

File

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

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

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