You are here

public function FlexiformElementEntityProperty::property in Flexiform 7

Return the property wrapper.

File

includes/element/property.element.inc, line 61
Contains class for the entity property elements.

Class

FlexiformElementEntityProperty
Class to add an element for entity properties.

Code

public function property($entity) {
  return entity_metadata_wrapper($this->entity_type, $entity)
    ->get($this->property);
}