Returns if the plugin can be used for the provided Paragraphs type.
\Drupal\paragraphs\Entity\ParagraphsType $paragraphs_type: The Paragraphs type entity that should be checked.
bool TRUE if the formatter can be used, FALSE otherwise.
Overrides ParagraphsBehaviorBase::isApplicable
public static function isApplicable(ParagraphsType $paragraphs_type) {
// If the name of the field is not text_paragraph_test then allow using this
// plugin.
if ($paragraphs_type
->id() != 'text_paragraph_test') {
return TRUE;
}
return FALSE;
}