function BcEditor::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\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.

Overrides EditorPluginInterface::getLibraries

File

core/modules/editor/tests/src/Unit/EditorBaseTest.php, line 124

Class

BcEditor

Namespace

Drupal\Tests\editor\Unit

Code

public function getLibraries(Editor $editor) {
    return [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.