function ResourceTypeConverter::applies
Same name in other branches
- 9 core/modules/jsonapi/src/ParamConverter/ResourceTypeConverter.php \Drupal\jsonapi\ParamConverter\ResourceTypeConverter::applies()
- 8.9.x core/modules/jsonapi/src/ParamConverter/ResourceTypeConverter.php \Drupal\jsonapi\ParamConverter\ResourceTypeConverter::applies()
- 11.x core/modules/jsonapi/src/ParamConverter/ResourceTypeConverter.php \Drupal\jsonapi\ParamConverter\ResourceTypeConverter::applies()
Overrides ParamConverterInterface::applies
File
-
core/
modules/ jsonapi/ src/ ParamConverter/ ResourceTypeConverter.php, line 54
Class
- ResourceTypeConverter
- Parameter converter for upcasting JSON:API resource type names to objects.
Namespace
Drupal\jsonapi\ParamConverterCode
public function applies($definition, $name, Route $route) {
return !empty($definition['type']) && $definition['type'] === static::PARAM_TYPE_ID;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.