NullJsonapiResourceConfig.php in JSON:API Extras 8.3
Same filename and directory in other branches
Namespace
Drupal\jsonapi_extras\ResourceTypeFile
src/ResourceType/NullJsonapiResourceConfig.phpView source
<?php
namespace Drupal\jsonapi_extras\ResourceType;
use Drupal\jsonapi_extras\Entity\JsonapiResourceConfig;
/**
* Null pattern class resources without overridden configuration.
*/
class NullJsonapiResourceConfig extends JsonapiResourceConfig {
/**
* {@inheritdoc}
*/
public function get($key) {
return $key == 'resourceFields' ? [] : NULL;
}
/**
* {@inheritdoc}
*/
public function getConfigDependencyName() {
return __CLASS__;
}
}
Classes
Name | Description |
---|---|
NullJsonapiResourceConfig | Null pattern class resources without overridden configuration. |