function PluginManagerDependentValidatorTrait::create

Same name in other branches
  1. 10 core/modules/ckeditor5/src/Plugin/Validation/Constraint/PluginManagerDependentValidatorTrait.php \Drupal\ckeditor5\Plugin\Validation\Constraint\PluginManagerDependentValidatorTrait::create()
  2. 11.x core/modules/ckeditor5/src/Plugin/Validation/Constraint/PluginManagerDependentValidatorTrait.php \Drupal\ckeditor5\Plugin\Validation\Constraint\PluginManagerDependentValidatorTrait::create()
1 method overrides PluginManagerDependentValidatorTrait::create()
CKEditor5MediaAndFilterSettingsInSyncConstraintValidator::create in core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php
Instantiates a new instance of this class.

File

core/modules/ckeditor5/src/Plugin/Validation/Constraint/PluginManagerDependentValidatorTrait.php, line 41

Class

PluginManagerDependentValidatorTrait
Common functionality for many CKEditor 5 validation constraints.

Namespace

Drupal\ckeditor5\Plugin\Validation\Constraint

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('plugin.manager.ckeditor5.plugin'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.