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
7b975c6b
Commit
7b975c6b
authored
May 26, 2021
by
Jeroen Tubex
Committed by
dpi
Aug 10, 2021
Browse files
Update EntityStorageBase.php
parent
9d5416cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Entity/EntityStorageBase.php
View file @
7b975c6b
...
...
@@ -393,7 +393,7 @@ protected function mapFromStorageRecords(array $records) {
$entities
=
[];
foreach
(
$records
as
$record
)
{
$entity_class
=
$this
->
getEntityClass
();
/** @var
$entity
\Drupal\Core\Entity\EntityInterface */
/** @var \Drupal\Core\Entity\EntityInterface
$entity
*/
$entity
=
new
$entity_class
(
$record
,
$this
->
entityTypeId
);
$entities
[
$entity
->
id
()]
=
$entity
;
}
...
...
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