class ResourceTypeAttribute in Drupal 9
Same name and namespace in other branches
- 8 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
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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ResourceTypeField:: |
protected | property | Whether the field is disabled. | |
ResourceTypeField:: |
protected | property | Whether the field can only have one value. | |
ResourceTypeField:: |
protected | property | The internal field name. | |
ResourceTypeField:: |
protected | property | The public field name. | |
ResourceTypeField:: |
public | function | Gets a new instance of the field that is disabled. | 1 |
ResourceTypeField:: |
public | function | Gets the internal name of the field. | |
ResourceTypeField:: |
public | function | Gets the public name of the field. | |
ResourceTypeField:: |
public | function | Whether the field can have many values. | |
ResourceTypeField:: |
public | function | Whether the field can only have one value. | |
ResourceTypeField:: |
public | function | Whether the field is enabled. | |
ResourceTypeField:: |
public | function | Establishes a new public name for the field. | 1 |
ResourceTypeField:: |
public | function | ResourceTypeField constructor. |