function ResourceType::getFields
Same name in other branches
- 9 core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getFields()
- 8.9.x core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getFields()
- 11.x core/modules/jsonapi/src/ResourceType/ResourceType.php \Drupal\jsonapi\ResourceType\ResourceType::getFields()
Gets the attribute and relationship fields of this resource type.
Return value
\Drupal\jsonapi\ResourceType\ResourceTypeField[] The field objects on this resource type.
File
-
core/
modules/ jsonapi/ src/ ResourceType/ ResourceType.php, line 186
Class
- ResourceType
- Value object containing all metadata for a JSON:API resource type.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function getFields() {
return $this->fields;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.