Problem/Motivation
Opening a admin/structure/paragraphs_type/X/display page thrown me the error
Using $this when not in object context in Drupal\ace_editor\Plugin\Field\FieldFormatter\AceFormatter::defaultSettings
Steps to reproduce
Well, it doesn't steps. The function is declared static, $this can't occur.
Proposed resolution
Just call Drupal::config(). Also, configFactory->get returns an object, so just run ->get() as well.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3271278_2.patch | 640 bytes | ghost of drupal past |
Issue fork ace_editor-3271278
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3271278-using-ace-editor
changes, plain diff MR !4
Comments
Comment #2
ghost of drupal pastComment #3
ghost of drupal pastComment #4
harlor commentedThis works.
Comment #9
interdruper commentedCommited to 8.x-1.x-dev. Thanks!
Comment #11
sgurlt commentedThe same issue reoccured in 2.0.x-dev. The patch also need to be applied there as well.