function ViewsTestConfigHooks::disableBrokenHandler
Helper method to remove broken handler.
6 calls to ViewsTestConfigHooks::disableBrokenHandler()
- ViewsTestConfigHooks::viewsPluginsAreaAlter in core/
modules/ views/ tests/ modules/ views_test_config/ src/ Hook/ ViewsTestConfigHooks.php - Implements hook_views_plugins_area_alter().
- ViewsTestConfigHooks::viewsPluginsArgumentAlter in core/
modules/ views/ tests/ modules/ views_test_config/ src/ Hook/ ViewsTestConfigHooks.php - Implements hook_views_plugins_argument_alter().
- ViewsTestConfigHooks::viewsPluginsFieldAlter in core/
modules/ views/ tests/ modules/ views_test_config/ src/ Hook/ ViewsTestConfigHooks.php - Implements hook_views_plugins_field_alter().
- ViewsTestConfigHooks::viewsPluginsFilterAlter in core/
modules/ views/ tests/ modules/ views_test_config/ src/ Hook/ ViewsTestConfigHooks.php - Implements hook_views_plugins_filter_alter().
- ViewsTestConfigHooks::viewsPluginsRelationshipAlter in core/
modules/ views/ tests/ modules/ views_test_config/ src/ Hook/ ViewsTestConfigHooks.php - Implements hook_views_plugins_relationship_alter().
File
-
core/
modules/ views/ tests/ modules/ views_test_config/ src/ Hook/ ViewsTestConfigHooks.php, line 94
Class
- ViewsTestConfigHooks
- Hook implementations for views_test_config.
Namespace
Drupal\views_test_config\HookCode
public function disableBrokenHandler(array &$definitions, string $handler_type) : void {
if (in_array($handler_type, \Drupal::state()->get('views_test_config_disable_broken_handler', []))) {
unset($definitions['broken']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.