function ctools_condition_info_alter in Chaos Tool Suite (ctools) 8.3
Implements Hook Info alter.
Parameters
$definitions:
File
- ./
ctools.module, line 89 - Provides utility and helper APIs for Drupal developers and site builders.
Code
function ctools_condition_info_alter(&$definitions) {
// If the node_type's class is unaltered, use a custom ctools implementation.
if (isset($definitions['node_type']) && $definitions['node_type']['class'] == 'Drupal\\node\\Plugin\\Condition\\NodeType') {
$definitions['node_type']['class'] = 'Drupal\\ctools\\Plugin\\Condition\\NodeType';
}
}