FakeObjects.php in CKEditor Anchor Link - For Drupal 8 and 9 8
File
src/Plugin/CKEditorPlugin/FakeObjects.php
View source
<?php
namespace Drupal\anchor_link\Plugin\CKEditorPlugin;
use Drupal\Core\Plugin\PluginBase;
use Drupal\editor\Entity\Editor;
use Drupal\ckeditor\CKEditorPluginInterface;
class FakeObjects extends PluginBase implements CKEditorPluginInterface {
public function getFile() {
return drupal_get_path('module', 'anchor_link') . '/js/plugins/fakeobjects/plugin.js';
}
public function getDependencies(Editor $editor) {
return [];
}
public function getLibraries(Editor $editor) {
return [];
}
public function isInternal() {
return FALSE;
}
public function getConfig(Editor $editor) {
return [];
}
}