public BreakpointManager::processDefinition(&$definition, $plugin_id)
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/modules/breakpoint/src/BreakpointManager.php, line 126
Class
- BreakpointManager
- Defines a breakpoint plugin manager to deal with breakpoints.
Namespace
Drupal\breakpoint
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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' ]); } |
Please login to continue.