Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flat_taxonomy
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
flat_taxonomy
Commits
642d038a
Commit
642d038a
authored
4 years ago
by
git
Committed by
vbouchet
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
flat_taxonomy.module
+1
-1
1 addition, 1 deletion
flat_taxonomy.module
src/Flattener.php
+1
-1
1 addition, 1 deletion
src/Flattener.php
with
2 additions
and
2 deletions
flat_taxonomy.module
+
1
−
1
View file @
642d038a
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/Flattener.php
+
1
−
1
View file @
642d038a
...
@@ -73,4 +73,4 @@ class Flattener {
...
@@ -73,4 +73,4 @@ class Flattener {
}
}
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment