You are here

public function GutenbergPluginBase::getLibraries in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 src/GutenbergPluginBase.php \Drupal\gutenberg\GutenbergPluginBase::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.

Overrides GutenbergPluginInterface::getLibraries

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

File

src/GutenbergPluginBase.php, line 23

Class

GutenbergPluginBase
Defines a base Gutenberg plugin implementation.

Namespace

Drupal\gutenberg

Code

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