You are here

function FieldModifier::GetAttributes in Realistic Dummy Content 8

Returns all fields and properties.

We implement fields and properties as subclasses of the same parent class, which defines a common interface for dealing with them.

Return value

An empty array if an error occurred, or an array of Attribute objects, keyed by attribute name, title => [Attribute], field_image => [Attribute]

1 call to FieldModifier::GetAttributes()
FieldModifier::Modify in api/src/manipulators/FieldModifier.php
Modify the entity.

File

api/src/manipulators/FieldModifier.php, line 237
Define autoload class.

Class

FieldModifier
Field modifier class.

Namespace

Drupal\realistic_dummy_content_api\manipulators

Code

function GetAttributes() {
  try {
    return array_merge($this
      ->GetFields(), $this
      ->GetProperties());
  } catch (\Exception $e) {
    return array();
  }
}