You are here

public function BibciteFormatManager::processDefinition in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/BibciteFormatManager.php \Drupal\bibcite\Plugin\BibciteFormatManager::processDefinition()

Performs extra processing on plugin definitions.

By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method.

Overrides DefaultPluginManager::processDefinition

File

src/Plugin/BibciteFormatManager.php, line 58

Class

BibciteFormatManager
Provides the default bibcite_format manager.

Namespace

Drupal\bibcite\Plugin

Code

public function processDefinition(&$definition, $plugin_id) {
  parent::processDefinition($definition, $plugin_id);
  if (empty($definition['id'])) {
    throw new PluginException("Property 'id' is required for plugin '{$plugin_id}' definition.");
  }
}