Skip to content
Snippets Groups Projects
Commit 642d038a authored by git's avatar git Committed by vbouchet
Browse files

Issue #3140577 by Project Update Bot: Automated Drupal Rector fixes

parent 55f88bce
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ function flat_taxonomy_form_taxonomy_vocabulary_form_alter(&$form, FormStateInte ...@@ -47,7 +47,7 @@ function flat_taxonomy_form_taxonomy_vocabulary_form_alter(&$form, FormStateInte
* @param $form * @param $form
* @param \Drupal\Core\Form\FormStateInterface $form_state * @param \Drupal\Core\Form\FormStateInterface $form_state
*/ */
function flat_taxonomy_form_taxonomy_vocabulary_form_builder($entity_type, Drupal\taxonomy\Entity\Vocabulary $vocabulary, &$form, FormStateInterface $form_state) { function flat_taxonomy_form_taxonomy_vocabulary_form_builder($entity_type, Vocabulary $vocabulary, &$form, FormStateInterface $form_state) {
if ($form_state->getValue('flat')) { if ($form_state->getValue('flat')) {
$vocabulary->setThirdPartySetting('flat_taxonomy', 'flat', $form_state->getValue('flat')); $vocabulary->setThirdPartySetting('flat_taxonomy', 'flat', $form_state->getValue('flat'));
\Drupal::service('flat_taxonomy.taxonomy_flattener')->flatten($vocabulary); \Drupal::service('flat_taxonomy.taxonomy_flattener')->flatten($vocabulary);
......
...@@ -73,4 +73,4 @@ class Flattener { ...@@ -73,4 +73,4 @@ class Flattener {
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment