function ResourceType::getPath
Same name in other branches
- 9 core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getPath()
- 10 core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getPath()
- 11.x core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getPath()
Get the resource path.
Return value
string The path to access this resource type. Default: /entity_type_id/bundle.
See also
jsonapi.base_path
File
-
core/
modules/ jsonapi/ src/ ResourceType/ ResourceType.php, line 434
Class
- ResourceType
- Value object containing all metadata for a JSON:API resource type.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function getPath() {
return sprintf('/%s/%s', $this->getEntityTypeId(), $this->getBundle());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.