You are here

function thunder_field_widget_info_alter in Thunder 8.5

Same name and namespace in other branches
  1. 8.2 thunder.profile \thunder_field_widget_info_alter()
  2. 8.3 thunder.profile \thunder_field_widget_info_alter()
  3. 8.4 thunder.profile \thunder_field_widget_info_alter()
  4. 6.2.x thunder.profile \thunder_field_widget_info_alter()
  5. 6.0.x thunder.profile \thunder_field_widget_info_alter()
  6. 6.1.x thunder.profile \thunder_field_widget_info_alter()

Implements hook_field_widget_info_alter().

File

./thunder.profile, line 209
Enables modules and site configuration for a thunder site installation.

Code

function thunder_field_widget_info_alter(array &$info) {
  if (!\Drupal::moduleHandler()
    ->moduleExists('content_moderation')) {
    unset($info['thunder_moderation_state_default']);
  }
}