You are here

function og_ui_form_alter in Organic groups 8

Implements hook_form_alter().

File

og_ui/og_ui.module, line 23

Code

function og_ui_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
  if ($form_state
    ->getFormObject() instanceof BundleEntityFormBase) {
    (new BundleFormAlter($form_state
      ->getFormObject()
      ->getEntity()))
      ->formAlter($form, $form_state);
  }
}