You are here

function RealisticDummyContentAttribute::__construct in Realistic Dummy Content 7

Constructor.

Parameters

$entity: Subclass of RealisticDummyContentEntityBase.

$name: The name of the field, for example body or picture or field_image

File

api/includes/RealisticDummyContentAttribute.inc, line 39
Define RealisticDummyContentAttribute autoload class.

Class

RealisticDummyContentAttribute
Represents either a field or a property for an entity.

Code

function __construct($entity, $name) {
  $this->entity = $entity;
  $this->name = $name;
}