function BreakpointManager::processDefinition
Same name in other branches
- 9 core/modules/breakpoint/src/BreakpointManager.php \Drupal\breakpoint\BreakpointManager::processDefinition()
- 10 core/modules/breakpoint/src/BreakpointManager.php \Drupal\breakpoint\BreakpointManager::processDefinition()
- 11.x core/modules/breakpoint/src/BreakpointManager.php \Drupal\breakpoint\BreakpointManager::processDefinition()
Overrides DefaultPluginManager::processDefinition
File
-
core/
modules/ breakpoint/ src/ BreakpointManager.php, line 126
Class
- BreakpointManager
- Defines a breakpoint plugin manager to deal with breakpoints.
Namespace
Drupal\breakpointCode
public function processDefinition(&$definition, $plugin_id) {
parent::processDefinition($definition, $plugin_id);
// Allow custom groups and therefore more than one group per extension.
if (empty($definition['group'])) {
$definition['group'] = $definition['provider'];
}
// Ensure a 1x multiplier exists.
if (!in_array('1x', $definition['multipliers'])) {
$definition['multipliers'][] = '1x';
}
// Ensure that multipliers are sorted correctly.
sort($definition['multipliers']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.