Commit 47fd4593 authored by Derek Wright's avatar Derek Wright
Browse files

[#2570593]: Fix failing test: EntityTypeInterface has 'getKey()' not 'key()'

parent a0ddf592
......@@ -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()->key('bundle')] = $bundle;
$values[$storage->getEntityType()->getKey('bundle')] = $bundle;
}
return $storage->create($values);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment