You are here

public function CerPresetFinder::__construct in Corresponding Entity References 7.3

File

includes/CerPresetFinder.inc, line 18

Class

CerPresetFinder
This class is a unified way for CER to find the presets that apply to a given entity. The result set is segmented into two parts: presets where the entity is on the left side, and bidirectional presets with the entity on the right side (i.e., the ones…

Code

public function __construct(EntityDrupalWrapper $entity = NULL) {
  $this->entity = $entity;
  $this
    ->entityCondition('entity_type', 'cer')
    ->addTag('cer_presets')
    ->addMetaData('entity', $entity);
}