You are here

public function GutenbergLibraryManager::processDefinition in Gutenberg 8.2

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

Overrides DefaultPluginManager::processDefinition

1 call to GutenbergLibraryManager::processDefinition()
GutenbergLibraryManager::findDefinitions in src/GutenbergLibraryManager.php
Finds plugin definitions.

File

src/GutenbergLibraryManager.php, line 152

Class

GutenbergLibraryManager
Provides the default .gutenberg.yml library plugin manager.

Namespace

Drupal\gutenberg

Code

public function processDefinition(&$definition, $plugin_id) {
  parent::processDefinition($definition, $plugin_id);
  if (empty($definition['provider'])) {
    throw new InvalidPluginDefinitionException(sprintf('Gutenberg plugin property (%s) definition "provider" is required.', $plugin_id));
  }
}