function CKEditor5MediaAndFilterSettingsInSyncConstraintValidator::create

Same name in other branches
  1. 10 core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php \Drupal\ckeditor5\Plugin\Validation\Constraint\CKEditor5MediaAndFilterSettingsInSyncConstraintValidator::create()
  2. 11.x core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php \Drupal\ckeditor5\Plugin\Validation\Constraint\CKEditor5MediaAndFilterSettingsInSyncConstraintValidator::create()

Overrides PluginManagerDependentValidatorTrait::create

File

core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php, line 57

Class

CKEditor5MediaAndFilterSettingsInSyncConstraintValidator
CKEditor 5 Media plugin in sync with the filter settings validator.

Namespace

Drupal\ckeditor5\Plugin\Validation\Constraint

Code

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

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