You are here

protected function ParagraphsWidget::allowReferenceChanges in Paragraphs 8

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 src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Builds header actions.
ParagraphsWidget::buildModalAddForm in src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Builds an add paragraph button for opening of modal form.
ParagraphsWidget::duplicateButtonAccess in src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Check duplicate button access.
ParagraphsWidget::formElement in src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Uses a similar approach to populate a new translation.
ParagraphsWidget::formMultipleElements in src/Plugin/Field/FieldWidget/ParagraphsWidget.php
Special handling to create form elements for multiple values.

... See full list

File

src/Plugin/Field/FieldWidget/ParagraphsWidget.php, line 2680

Class

ParagraphsWidget
Plugin implementation of the 'entity_reference_revisions paragraphs' widget.

Namespace

Drupal\paragraphs\Plugin\Field\FieldWidget

Code

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