public function ParagraphsConversionInterface::supports

Check if the current plugin supports conversion for a paragraph.

This method checks whether a plugin supports a paragraph type to be converted.

Parameters

\Drupal\paragraphs\ParagraphInterface $paragraph: The paragraph that will be checked is supported by the plugin.

array $parent_allowed_types: (optional) The allowed paragraph types on the parent field.

1 method overrides ParagraphsConversionInterface::supports()
ParagraphsConversionBase::supports in paragraphs/src/ParagraphsConversionBase.php
Check if the current plugin supports conversion for a paragraph.

File

paragraphs/src/ParagraphsConversionInterface.php, line 77

Class

ParagraphsConversionInterface
Provides an interface defining a paragraph behavior.

Namespace

Drupal\paragraphs

Code

public function supports(ParagraphInterface $paragraph, array $parent_allowed_types = NULL);