You are here

protected function ParagraphsAsymmetricWidget::supportsAsymmetricTranslations in Paragraphs asymmetric translation widgets 8

File

src/Plugin/Field/FieldWidget/ParagraphsAsymmetricWidget.php, line 15

Class

ParagraphsAsymmetricWidget
Extends the 'paragraphs' widget to add support for asymmetric translations.

Namespace

Drupal\paragraphs_asymmetric_translation_widgets\Plugin\Field\FieldWidget

Code

protected function supportsAsymmetricTranslations() {
  return $this->fieldDefinition
    ->isTranslatable();
}