You are here

public function BlockManager::processDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Block/BlockManager.php \Drupal\Core\Block\BlockManager::processDefinition()
  2. 9 core/lib/Drupal/Core/Block/BlockManager.php \Drupal\Core\Block\BlockManager::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

core/lib/Drupal/Core/Block/BlockManager.php, line 65

Class

BlockManager
Manages discovery and instantiation of block plugins.

Namespace

Drupal\Core\Block

Code

public function processDefinition(&$definition, $plugin_id) {
  parent::processDefinition($definition, $plugin_id);
  $this
    ->processDefinitionCategory($definition);
}