Skip to content
Snippets Groups Projects

Use alias EditorEntity for Drupal\editor\Entity\Editor

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -261,7 +261,7 @@ public static function validatePair(EditorInterface $text_editor, FilterFormatIn
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$editor = $form_state->get('editor');
assert($editor instanceof Editor);
assert($editor instanceof EditorEntity);
$language = $this->languageManager->getCurrentLanguage();
// When enabling CKEditor 5, generate sensible settings from the
Loading