Problem/Motivation
Warning: Undefined array key "user" in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 101 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Warning: Trying to access array offset on null in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 101 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Warning: Undefined array key "user" in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 110 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Warning: Trying to access array offset on null in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 110 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Warning: Undefined array key "user" in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 125 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Warning: Trying to access array offset on null in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 125 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Warning: Undefined array key "user" in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 138 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Warning: Trying to access array offset on null in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 138 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Warning: Undefined array key "user" in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 151 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Warning: Trying to access array offset on null in Drupal\ckeditor_mentions\Plugin\CKEditor5Plugin\Mentions->buildConfigurationForm() (line 151 of modules/contrib/ckeditor_mentions/src/Plugin/CKEditor5Plugin/Mentions.php).
Steps to reproduce
Visit /admin/config/content/formats/manage/full_html
Proposed resolution
The reason is, that
$this->mentionsPluginManager->getAllMentionsTypes()
lists ALL plugins, e.g.
as keys, but even after saving the form, the settings don't contain all of them:
$settings = $this->configuration
e.g. in our case only contains
which should also be fine! Maybe this is even erased after saving the form with only one (or none) type?
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
anybodyComment #3
anybodyComment #6
grevil commentedFixed, please review!
Comment #7
grevil commentedAlright, that should be it! The additional "image" module and its dependency "file" was added, because the user mentions type (which is mainly tested here) uses "image_style". The dependency already exists on the module itself.
I'll add some CkeditorMentionsNodeTests in the test issue.
Comment #9
anybodyComment #10
anybodyPERFECT!