Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Issue forks
drupal-2570593
Commits
47fd4593
Commit
47fd4593
authored
Aug 25, 2021
by
Derek Wright
Browse files
[
#2570593
]: Fix failing test: EntityTypeInterface has 'getKey()' not 'key()'
parent
a0ddf592
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Entity/ContentEntityBase.php
View file @
47fd4593
...
...
@@ -1136,7 +1136,7 @@ public static function create(array $values = []) {
// Always explicitly specify the bundle if the entity has a bundle class.
if
(
$storage
instanceof
BundleEntityStorageInterface
&&
(
$bundle
=
$storage
->
getBundleFromClass
(
$class_name
)))
{
$values
[
$storage
->
getEntityType
()
->
k
ey
(
'bundle'
)]
=
$bundle
;
$values
[
$storage
->
getEntityType
()
->
getK
ey
(
'bundle'
)]
=
$bundle
;
}
return
$storage
->
create
(
$values
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment