You are here

public function RealisticDummyContentField::getType in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/includes/RealisticDummyContentField.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentField::getType()
  2. 7.2 api/src/includes/RealisticDummyContentField.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentField::getType()

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

string 'property' or 'field'

Overrides RealisticDummyContentAttribute::getType

File

api/src/includes/RealisticDummyContentField.php, line 13

Class

RealisticDummyContentField
Represents fields like body or field_image.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function getType() {
  return 'field';
}