You are here

public function DrupalMedia::getConfig in Drupal 10

File

core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalMedia.php, line 104

Class

DrupalMedia
Defines the "drupalmedia" plugin.

Namespace

Drupal\ckeditor\Plugin\CKEditorPlugin

Code

public function getConfig(Editor $editor) {
  return [
    'drupalMedia_previewCsrfToken' => \Drupal::csrfToken()
      ->get('X-Drupal-MediaPreview-CSRF-Token'),
  ];
}