class ResourceTypeAttribute
Same name and namespace in other branches
- 9 core/modules/jsonapi/src/ResourceType/ResourceTypeAttribute.php \Drupal\jsonapi\ResourceType\ResourceTypeAttribute
- 8.9.x core/modules/jsonapi/src/ResourceType/ResourceTypeAttribute.php \Drupal\jsonapi\ResourceType\ResourceTypeAttribute
- 10 core/modules/jsonapi/src/ResourceType/ResourceTypeAttribute.php \Drupal\jsonapi\ResourceType\ResourceTypeAttribute
Specialization of a ResourceTypeField to represent a resource type attribute.
@internal JSON:API maintains no PHP API since its API is the HTTP API. This class may change at any time and this will break any dependencies on it.
Hierarchy
- class \Drupal\jsonapi\ResourceType\ResourceTypeField
- class \Drupal\jsonapi\ResourceType\ResourceTypeAttribute implements \Drupal\jsonapi\ResourceType\ResourceTypeField
Expanded class hierarchy of ResourceTypeAttribute
See also
https://www.drupal.org/project/drupal/issues/3032787
\Drupal\jsonapi\ResourceType\ResourceTypeRepository
File
-
core/
modules/ jsonapi/ src/ ResourceType/ ResourceTypeAttribute.php, line 16
Namespace
Drupal\jsonapi\ResourceTypeView source
class ResourceTypeAttribute extends ResourceTypeField {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ResourceTypeField::$enabled | protected | property | Whether the field is disabled. | |
ResourceTypeField::$hasOne | protected | property | Whether the field can only have one value. | |
ResourceTypeField::$internalName | protected | property | The internal field name. | |
ResourceTypeField::$publicName | protected | property | The public field name. | |
ResourceTypeField::disabled | public | function | Gets a new instance of the field that is disabled. | 1 |
ResourceTypeField::enabled | public | function | Gets a new instance of the field that is enabled. | |
ResourceTypeField::getInternalName | public | function | Gets the internal name of the field. | |
ResourceTypeField::getPublicName | public | function | Gets the public name of the field. | |
ResourceTypeField::hasMany | public | function | Whether the field can have many values. | |
ResourceTypeField::hasOne | public | function | Whether the field can only have one value. | |
ResourceTypeField::isFieldEnabled | public | function | Whether the field is enabled. | |
ResourceTypeField::withPublicName | public | function | Establishes a new public name for the field. | 1 |
ResourceTypeField::__construct | public | function | ResourceTypeField constructor. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.