You are here

public function NullJsonapiResourceConfig::get in JSON:API Extras 8.3

Same name and namespace in other branches
  1. 8 src/ResourceType/NullJsonapiResourceConfig.php \Drupal\jsonapi_extras\ResourceType\NullJsonapiResourceConfig::get()
  2. 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\ResourceType

Code

public function get($key) {
  return $key == 'resourceFields' ? [] : NULL;
}