You are here

function RealisticDummyContentFieldModifier::GetAttributes in Realistic Dummy Content 7

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 array of RealisticDummyContentAttribute objects, keyed by attribute name, e.g. title => [RealisticDummyContentAttribute], field_image => [RealisticDummyContentAttribute]

1 call to RealisticDummyContentFieldModifier::GetAttributes()
RealisticDummyContentFieldModifier::Modify in api/includes/RealisticDummyContentEntityFieldModifier.inc
Modify the entity.

File

api/includes/RealisticDummyContentEntityFieldModifier.inc, line 165
Define RealisticDummyContentFieldModifier autoload class.

Class

RealisticDummyContentFieldModifier
Field modifier class.

Code

function GetAttributes() {
  return array_merge($this
    ->GetFields(), $this
    ->GetProperties());
}