function ResourceTypeField::enabled
Gets a new instance of the field that is enabled.
Return value
static A new instance of the field that is enabled.
File
-
core/
modules/ jsonapi/ src/ ResourceType/ ResourceTypeField.php, line 114
Class
- ResourceTypeField
- Abstract value object containing all metadata for a JSON:API resource field.
Namespace
Drupal\jsonapi\ResourceTypeCode
public function enabled() : static {
return new static($this->internalName, $this->publicName, TRUE, $this->hasOne);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.