function EditorPluginInterface::getLibraries

Returns libraries to be attached.

Because this is a method, plugins can dynamically choose to attach a different library for different configurations, instead of being forced to always use the same method.

Parameters

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

Return value

array An array of libraries that will be added to the page for use by this text editor.

See also

drupal_process_attached()

EditorManager::getAttachments()

2 methods override EditorPluginInterface::getLibraries()
CKEditor::getLibraries in drupal/core/modules/ckeditor/lib/Drupal/ckeditor/Plugin/Editor/CKEditor.php
Implements \Drupal\editor\Plugin\EditPluginInterface::getLibraries().
UnicornEditor::getLibraries in drupal/core/modules/editor/tests/modules/lib/Drupal/editor_test/Plugin/Editor/UnicornEditor.php
Implements \Drupal\editor\Plugin\EditPluginInterface::getLibraries().

File

drupal/core/modules/editor/lib/Drupal/editor/Plugin/EditorPluginInterface.php, line 115
Contains \Drupal\editor\Plugin\EditPluginInterface.

Class

EditorPluginInterface
Defines an interface for configurable text editors.

Namespace

Drupal\editor\Plugin

Code

function getLibraries(Editor $editor);