You are here

public function ResourceTypeField::isFieldEnabled in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::isFieldEnabled()
  2. 10 core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::isFieldEnabled()

Whether the field is enabled.

Return value

bool Whether the field is enabled. FALSE if the field should not be in the JSON:API response.

File

core/modules/jsonapi/src/ResourceType/ResourceTypeField.php, line 115

Class

ResourceTypeField
Abstract value object containing all metadata for a JSON:API resource field.

Namespace

Drupal\jsonapi\ResourceType

Code

public function isFieldEnabled() {
  return $this->enabled;
}