You are here

public function SelectionBase::__construct in Entity reference 8

File

lib/Drupal/entityreference/Plugin/entityreference/selection/SelectionBase.php, line 31
Definition of Drupal\entityreference\Plugin\entityreference\selection\SelectionBase.

Class

SelectionBase
Plugin implementation of the 'selection' entityreference.

Namespace

Drupal\entityreference\Plugin\entityreference\selection

Code

public function __construct($field, $instance = NULL, EntityInterface $entity = NULL) {
  $this->field = $field;
  $this->instance = $instance;
  $this->entity = $entity;
}