public function NullJsonapiResourceConfig::get in JSON:API Extras 8
Same name and namespace in other branches
- 8.3 src/ResourceType/NullJsonapiResourceConfig.php \Drupal\jsonapi_extras\ResourceType\NullJsonapiResourceConfig::get()
- 8.2 src/ResourceType/NullJsonapiResourceConfig.php \Drupal\jsonapi_extras\ResourceType\NullJsonapiResourceConfig::get()
Returns the value of a property.
Parameters
string $property_name: The name of the property that should be returned.
Return value
mixed The property if it exists, or NULL otherwise.
Overrides ConfigEntityBase::get
File
- src/
ResourceType/ NullJsonapiResourceConfig.php, line 15
Class
- NullJsonapiResourceConfig
- Null pattern class resources without overridden configuration.
Namespace
Drupal\jsonapi_extras\ResourceTypeCode
public function get($key) {
return $key == 'resourceFields' ? [] : NULL;
}