You are here

public function AnchorLink::getDependencies in CKEditor Anchor Link - For Drupal 8 and 9 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/CKEditorPlugin/AnchorLink.php \Drupal\anchor_link\Plugin\CKEditorPlugin\AnchorLink::getDependencies()

Returns a list of plugins this plugin requires.

Parameters

\Drupal\editor\Entity\Editor $editor: A configured text editor object.

Return value

array An unindexed array of plugin names this plugin requires. Each plugin is is identified by its annotated ID.

Overrides CKEditorPluginBase::getDependencies

File

src/Plugin/CKEditorPlugin/AnchorLink.php, line 29

Class

AnchorLink
Defines the "link" plugin.

Namespace

Drupal\anchor_link\Plugin\CKEditorPlugin

Code

public function getDependencies(Editor $editor) {
  return [
    'fakeobjects',
  ];
}