function ResourceIdentifierTrait::getResourceType
Same name in other branches
- 8.9.x core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifierTrait::getResourceType()
- 10 core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifierTrait::getResourceType()
- 11.x core/modules/jsonapi/src/JsonApiResource/ResourceIdentifierTrait.php \Drupal\jsonapi\JsonApiResource\ResourceIdentifierTrait::getResourceType()
File
-
core/
modules/ jsonapi/ src/ JsonApiResource/ ResourceIdentifierTrait.php, line 49
Class
- ResourceIdentifierTrait
- Used to associate an object like an exception to a particular resource.
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getResourceType() {
if (!isset($this->resourceType)) {
$this->resourceType = $this->resourceIdentifier
->getResourceType();
}
return $this->resourceType;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.