You are here

protected function Select2EntityReferenceWidget::setEntityTypeManager in Select 2 8

Set the entity type manager service.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.

File

src/Plugin/Field/FieldWidget/Select2EntityReferenceWidget.php, line 53

Class

Select2EntityReferenceWidget
Plugin implementation of the 'select2' widget.

Namespace

Drupal\select2\Plugin\Field\FieldWidget

Code

protected function setEntityTypeManager(EntityTypeManagerInterface $entityTypeManager) {
  $this->entityTypeManager = $entityTypeManager;
}