public function ParagraphsConversionBase::convert

Submit the values taken from the form to store the values.

This method is responsible for submitting the data and saving it in the paragraphs entity.

Parameters

array $settings: The conversion settings to be applied.

\Drupal\paragraphs\ParagraphInterface $original_paragraph: The original paragraph to convert.

array $converted_paragraphs: (optional) The array of converted paragraphs.

Overrides ParagraphsConversionInterface::convert

2 methods override ParagraphsConversionBase::convert()
ParagraphsDemoUserText::convert in paragraphs/modules/paragraphs_demo/src/Plugin/paragraphs/Conversion/ParagraphsDemoUserText.php
Submit the values taken from the form to store the values.
ParagraphsDemoUserToTextUser::convert in paragraphs/modules/paragraphs_demo/src/Plugin/paragraphs/Conversion/ParagraphsDemoUserToTextUser.php
Submit the values taken from the form to store the values.

File

paragraphs/src/ParagraphsConversionBase.php, line 100

Class

ParagraphsConversionBase
Provides a base class for paragraphs conversions.

Namespace

Drupal\paragraphs

Code

public function convert(array $settings, ParagraphInterface $original_paragraph, array $converted_paragraph = NULL) {
  return NULL;
}