You are here

public function ResourceTypeField::disabled in Drupal 10

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

Gets a new instance of the field that is disabled.

Return value

static A new instance of the field that is disabled.

File

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

Class

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

Namespace

Drupal\jsonapi\ResourceType

Code

public function disabled() {
  return new static($this->internalName, $this->publicName, FALSE, $this->hasOne);
}