public function ParagraphsConversionBase::buildConversionForm

Builds a conversion form to add extra settings to the conversion.

This method is responsible for building the conversion form for each Paragraph so the user can set special attributes and properties.

Parameters

\Drupal\paragraphs\ParagraphInterface $paragraph: The paragraph.

array $form: An associative array containing the initial structure of the plugin form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The fields build array that the plugin creates.

Overrides ParagraphsConversionInterface::buildConversionForm

1 method overrides ParagraphsConversionBase::buildConversionForm()
ParagraphsDemoUserText::buildConversionForm in paragraphs/modules/paragraphs_demo/src/Plugin/paragraphs/Conversion/ParagraphsDemoUserText.php
Builds a conversion form to add extra settings to the conversion.

File

paragraphs/src/ParagraphsConversionBase.php, line 87

Class

ParagraphsConversionBase
Provides a base class for paragraphs conversions.

Namespace

Drupal\paragraphs

Code

public function buildConversionForm(ParagraphInterface $paragraph, array &$form, FormStateInterface $form_state) {
  return [];
}