protected function ParagraphsWidget::allowReferenceChanges

Checks if we can allow reference changes.

Return value

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

6 calls to ParagraphsWidget::allowReferenceChanges()
ParagraphsWidget::buildHeaderActions in paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Builds header actions.
ParagraphsWidget::buildModalAddForm in paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Builds an add paragraph button for opening of modal form.
ParagraphsWidget::duplicateButtonAccess in paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Check duplicate button access.
ParagraphsWidget::formElement in paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Uses a similar approach to populate a new translation.
ParagraphsWidget::formMultipleElements in paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php

... See full list

File

paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php, line 3029

Class

ParagraphsWidget
Plugin implementation of the 'entity_reference_revisions paragraphs' widget.

Namespace

Drupal\paragraphs\Plugin\Field\FieldWidget

Code

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