Constructs a SelectionBase object.
File
- drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/entity_reference/selection/SelectionBase.php, line 56
- Contains \Drupal\entity_reference\Plugin\entity_reference\selection\SelectionBase.
Class
- SelectionBase
- Plugin implementation of the 'selection' entity_reference.
Namespace
Drupal\entity_reference\Plugin\entity_reference\selection
Code
public function __construct($field, $instance, EntityInterface $entity = NULL) {
$this->field = $field;
$this->instance = $instance;
$this->entity = $entity;
}