function ResourceTypeField::isFieldEnabled

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::isFieldEnabled()
  2. 8.9.x core/modules/jsonapi/src/ResourceType/ResourceTypeField.php \Drupal\jsonapi\ResourceType\ResourceTypeField::isFieldEnabled()
  3. 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.