File
- paragraphs/modules/paragraphs_library/src/Plugin/Validation/Constraint/ParagraphsLibraryItemHasAllowedParagraphsTypeConstraintValidator.php, line 56
Class
- ParagraphsLibraryItemHasAllowedParagraphsTypeConstraintValidator
- Validates that the library does not bypass Paragraphs type restrictions.
Namespace
Drupal\paragraphs_library\Plugin\Validation\Constraint
Code
public static function create(ContainerInterface $container) {
return new static($container
->get('plugin.manager.entity_reference_selection'), $container
->get('entity_type.manager'));
}