You are here

public function GutenbergPluginInterface::getLibraries in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 src/GutenbergPluginInterface.php \Drupal\gutenberg\GutenbergPluginInterface::getLibraries()

Returns a list of libraries this plugin requires.

These libraries will be attached to the text_format element on which the editor is being loaded.

Parameters

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

Return value

array An array of libraries suitable for usage in a render API #attached property.

1 method overrides GutenbergPluginInterface::getLibraries()
GutenbergPluginBase::getLibraries in src/GutenbergPluginBase.php
Returns a list of libraries this plugin requires.

File

src/GutenbergPluginInterface.php, line 26

Class

GutenbergPluginInterface
Defines an interface for (loading of) Gutenberg plugins.

Namespace

Drupal\gutenberg

Code

public function getLibraries(Editor $editor);