You are here

function Attribute::__construct in Realistic Dummy Content 8

Constructor.

Parameters

$entity: Subclass of EntityBase.

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

File

api/src/attributes/Attribute.php, line 44
Define autoload class.

Class

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

Namespace

Drupal\realistic_dummy_content_api\attributes

Code

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