function ResourceTypeBuildEvent::setResourceTypeName
Same name in other branches
- 9 core/modules/jsonapi/src/ResourceType/ResourceTypeBuildEvent.php \Drupal\jsonapi\ResourceType\ResourceTypeBuildEvent::setResourceTypeName()
- 11.x core/modules/jsonapi/src/ResourceType/ResourceTypeBuildEvent.php \Drupal\jsonapi\ResourceType\ResourceTypeBuildEvent::setResourceTypeName()
Sets the name of the resource type to be built.
Parameters
string $resource_type_name: The resource type name. Also used to build the resource path.
See also
\Drupal\jsonapi\ResourceType\ResourceType::getPath()
File
-
core/
modules/ jsonapi/ src/ ResourceType/ ResourceTypeBuildEvent.php, line 91
Class
- ResourceTypeBuildEvent
- An event used to configure the construction of a JSON:API resource type.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function setResourceTypeName(string $resource_type_name) : void {
$this->resourceTypeName = $resource_type_name;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.