You are here

protected function EntityReferenceLayoutWidget::allowReferenceChanges in Entity Reference with Layout 8

Checks if we can allow reference changes.

Return value

bool TRUE if we can allow reference changes, otherwise FALSE.

1 call to EntityReferenceLayoutWidget::allowReferenceChanges()
EntityReferenceLayoutWidget::formMultipleElements in src/Plugin/Field/FieldWidget/EntityReferenceLayoutWidget.php
Builds the main widget form array container/wrapper.

File

src/Plugin/Field/FieldWidget/EntityReferenceLayoutWidget.php, line 1433

Class

EntityReferenceLayoutWidget
Entity Reference with Layout field widget.

Namespace

Drupal\entity_reference_layout\Plugin\Field\FieldWidget

Code

protected function allowReferenceChanges() {
  return !$this->isTranslating;
}