function Property::GetType in Realistic Dummy Content 8
Returns the type of this attribute.
Drupal uses fields (managed by the field system) and properties to define attributes of entities. Fields include body and field_image; properties include title and the user picture.
Return value
'property' or 'field_config'
Overrides Attribute::GetType
File
- api/
src/ attributes/ Property.php, line 21 - Define autoload class.
Class
- Property
- Represents properties like the user picture or node titles.
Namespace
Drupal\realistic_dummy_content_api\attributesCode
function GetType() {
return 'property';
}