You are here

protected function LayoutParagraphsBuilder::supportsAsymmetricTranslations in Layout Paragraphs 2.0.x

Whether or not to support asymmetric translations.

Return value

bool True if asymmetric tranlation is supported.

See also

https://www.drupal.org/project/paragraphs/issues/2461695

https://www.drupal.org/project/paragraphs/issues/2904705

https://www.drupal.org/project/paragraphs_asymmetric_translation_widgets

3 calls to LayoutParagraphsBuilder::supportsAsymmetricTranslations()
LayoutParagraphsBuilder::createAccess in src/Element/LayoutParagraphsBuilder.php
Returns an AccessResult object.
LayoutParagraphsBuilder::deleteAccess in src/Element/LayoutParagraphsBuilder.php
Returns an AccessResult object.
LayoutParagraphsBuilder::translationWarning in src/Element/LayoutParagraphsBuilder.php
Builds a translation warning message.

File

src/Element/LayoutParagraphsBuilder.php, line 602

Class

LayoutParagraphsBuilder
Defines a render element for building the Layout Builder UI.

Namespace

Drupal\layout_paragraphs\Element

Code

protected function supportsAsymmetricTranslations() {
  return $this->layoutParagraphsLayout
    ->getParagraphsReferenceField()
    ->getFieldDefinition()
    ->isTranslatable();
}