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
b3db2047
Commit
b3db2047
authored
Jun 05, 2014
by
catch
Browse files
Issue
#2278051
by yched: Remove uses of non-existing 'max_length' setting on EntityRef fields.
parent
2405d102
Changes
4
Show whitespace changes
Inline
Side-by-side
core/modules/block/custom_block/src/Entity/CustomBlock.php
View file @
b3db2047
...
...
@@ -184,8 +184,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields
[
'type'
]
=
FieldDefinition
::
create
(
'entity_reference'
)
->
setLabel
(
t
(
'Block type'
))
->
setDescription
(
t
(
'The block type.'
))
->
setSetting
(
'target_type'
,
'custom_block_type'
)
->
setSetting
(
'max_length'
,
EntityTypeInterface
::
BUNDLE_MAX_LENGTH
);
->
setSetting
(
'target_type'
,
'custom_block_type'
);
$fields
[
'log'
]
=
FieldDefinition
::
create
(
'string_long'
)
->
setLabel
(
t
(
'Revision log message'
))
...
...
core/modules/node/src/Entity/Node.php
View file @
b3db2047
...
...
@@ -357,7 +357,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
->
setLabel
(
t
(
'Type'
))
->
setDescription
(
t
(
'The node type.'
))
->
setSetting
(
'target_type'
,
'node_type'
)
->
setSetting
(
'max_length'
,
EntityTypeInterface
::
BUNDLE_MAX_LENGTH
)
->
setReadOnly
(
TRUE
);
$fields
[
'langcode'
]
=
FieldDefinition
::
create
(
'language'
)
...
...
core/modules/shortcut/src/Entity/Shortcut.php
View file @
b3db2047
...
...
@@ -167,7 +167,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
->
setLabel
(
t
(
'Shortcut set'
))
->
setDescription
(
t
(
'The bundle of the shortcut.'
))
->
setSetting
(
'target_type'
,
'shortcut_set'
)
->
setSetting
(
'max_length'
,
EntityTypeInterface
::
BUNDLE_MAX_LENGTH
)
->
setRequired
(
TRUE
);
$fields
[
'title'
]
=
FieldDefinition
::
create
(
'string'
)
...
...
core/modules/taxonomy/src/Entity/Term.php
View file @
b3db2047
...
...
@@ -116,8 +116,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields
[
'vid'
]
=
FieldDefinition
::
create
(
'entity_reference'
)
->
setLabel
(
t
(
'Vocabulary'
))
->
setDescription
(
t
(
'The vocabulary to which the term is assigned.'
))
->
setSetting
(
'target_type'
,
'taxonomy_vocabulary'
)
->
setSetting
(
'max_length'
,
EntityTypeInterface
::
BUNDLE_MAX_LENGTH
);
->
setSetting
(
'target_type'
,
'taxonomy_vocabulary'
);
$fields
[
'langcode'
]
=
FieldDefinition
::
create
(
'language'
)
->
setLabel
(
t
(
'Language code'
))
...
...
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