You are here

protected function LayoutParagraphsWidget::allowReferenceChanges in Layout Paragraphs 1.0.x

Checks if we can allow reference changes.

Return value

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

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

File

src/Plugin/Field/FieldWidget/LayoutParagraphsWidget.php, line 2414

Class

LayoutParagraphsWidget
Entity Reference with Layout field widget.

Namespace

Drupal\layout_paragraphs\Plugin\Field\FieldWidget

Code

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