class ParagraphsConversion

Defines a ParagraphsConversion annotation object.

Paragraphs conversion handles conversion types for Paragraphs.

Hierarchy

  • class \Drupal\paragraphs\Annotation\ParagraphsConversion extends \Drupal\Component\Annotation\Plugin

Expanded class hierarchy of ParagraphsConversion

3 classes are annotated with ParagraphsConversion
ParagraphsDemoUserText in paragraphs/modules/paragraphs_demo/src/Plugin/paragraphs/Conversion/ParagraphsDemoUserText.php
Provides a Paragraphs conversion plugin.
ParagraphsDemoUserToTextUser in paragraphs/modules/paragraphs_demo/src/Plugin/paragraphs/Conversion/ParagraphsDemoUserToTextUser.php
Provides a Paragraphs conversion plugin.
ParagraphsTestTextToTextImage in paragraphs/tests/modules/paragraphs_test/src/Plugin/paragraphs/Conversion/ParagraphsTestTextToTextImage.php
Provides a Paragraphs conversion plugin.

File

paragraphs/src/Annotation/ParagraphsConversion.php, line 14

Namespace

Drupal\paragraphs\Annotation
View source
class ParagraphsConversion extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the paragraphs conversion plugin.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

  /**
   * The Paragraphs source type where the plugin can be applied.
   *
   * @var string
   */
  public $source_type;

  /**
   * The Paragraphs target types that the Paragraph will be converted to.
   *
   * @var array
   */
  public $target_types = [];

  /**
   * The plugin weight.
   *
   * @var int
   */
  public $weight;

}

Members

Namesort descending Modifiers Type Description Overrides
ParagraphsConversion::$id public property The plugin ID.
ParagraphsConversion::$label public property The human-readable name of the paragraphs conversion plugin.
ParagraphsConversion::$source_type public property The Paragraphs source type where the plugin can be applied.
ParagraphsConversion::$target_types public property The Paragraphs target types that the Paragraph will be converted to.
ParagraphsConversion::$weight public property The plugin weight.