Skip to content

Commit

Permalink
Hide path field for nationality taxonomy.
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-getopensocial committed Dec 3, 2024
1 parent aac7e14 commit 41a99cc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,3 +451,11 @@ function social_profile_fields_preprocess_field(&$variables) {
}
}
}

/**
* Implements hook_form_BASE_FORM_ID_alter().
*/
function social_profile_fields_form_taxonomy_term_nationality_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void {
// As per PROD-30250 we hide the path field.
$form['path']['#access'] = FALSE;
}

0 comments on commit 41a99cc

Please sign in to comment.