InlineParagraphsBrowserWidget.php in Paragraphs Browser 8
Paragraphs Previewer widget implementation for paragraphs.
File
src/Plugin/Field/FieldWidget/InlineParagraphsBrowserWidget.phpView source
<?php
/**
* @file
* Paragraphs Previewer widget implementation for paragraphs.
*/
namespace Drupal\paragraphs_browser\Plugin\Field\FieldWidget;
use Drupal\paragraphs\Plugin\Field\FieldWidget\InlineParagraphsWidget;
/**
* Plugin implementation of the 'entity_reference paragraphs' widget.
*
* We hide add / remove buttons when translating to avoid accidental loss of
* data because these actions effect all languages.
*
* @FieldWidget(
* id = "entity_reference_paragraphs_browser",
* label = @Translation("Paragraphs Browser Classic"),
* description = @Translation("An paragraphs inline form widget with a previewer."),
* field_types = {
* "entity_reference_revisions"
* }
* )
*/
class InlineParagraphsBrowserWidget extends InlineParagraphsWidget {
use InlineParagraphsBrowserWidgetTrait;
}
Classes
Name | Description |
---|---|
InlineParagraphsBrowserWidget | Plugin implementation of the 'entity_reference paragraphs' widget. |