Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0c1be8a4
Commit
0c1be8a4
authored
Nov 12, 2015
by
webchick
Browse files
Issue
#2612008
by webflo: Add proper field labels for vocabulary fields
parent
5f89d536
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/taxonomy/migration_templates/d6_vocabulary_field_instance.yml
View file @
0c1be8a4
...
...
@@ -19,6 +19,7 @@ process:
-
plugin
:
skip_on_empty
method
:
row
label
:
name
'
settings/handler'
:
'
constants/selection_handler'
'
settings/handler_settings/target_bundles/0'
:
'
@field_name'
'
settings/handler_settings/auto_create'
:
'
constants/auto_create'
...
...
core/modules/taxonomy/src/Tests/Migrate/d6/MigrateVocabularyFieldInstanceTest.php
View file @
0c1be8a4
...
...
@@ -39,11 +39,13 @@ public function testVocabularyFieldInstance() {
$field_id
=
'node.article.tags'
;
$field
=
FieldConfig
::
load
(
$field_id
);
$this
->
assertIdentical
(
$field_id
,
$field
->
id
(),
'Field instance exists on article bundle.'
);
$this
->
assertIdentical
(
'Tags'
,
$field
->
label
());
// Test the page bundle as well.
$field_id
=
'node.page.tags'
;
$field
=
FieldConfig
::
load
(
$field_id
);
$this
->
assertIdentical
(
$field_id
,
$field
->
id
(),
'Field instance exists on page bundle.'
);
$this
->
assertIdentical
(
'Tags'
,
$field
->
label
());
$settings
=
$field
->
getSettings
();
$this
->
assertIdentical
(
'default:taxonomy_term'
,
$settings
[
'handler'
],
'The handler plugin ID is correct.'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment