ParagraphsAsymmetricWidget.php in Paragraphs asymmetric translation widgets 8
File
src/Plugin/Field/FieldWidget/ParagraphsAsymmetricWidget.phpView source
<?php
namespace Drupal\paragraphs_asymmetric_translation_widgets\Plugin\Field\FieldWidget;
use Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget;
/**
* Extends the 'paragraphs' widget to add support for asymmetric translations.
*/
class ParagraphsAsymmetricWidget extends ParagraphsWidget {
/**
* {@inheritdoc}
*/
protected function supportsAsymmetricTranslations() {
return $this->fieldDefinition
->isTranslatable();
}
}
Classes
Name![]() |
Description |
---|---|
ParagraphsAsymmetricWidget | Extends the 'paragraphs' widget to add support for asymmetric translations. |