Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!994
Issue
#2570593
: Allow entities to be subclassed using "bundle classes"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Issue
#2570593
: Allow entities to be subclassed using "bundle classes"
issue/drupal-2570593:bundle-classes-9.3.x
into
9.3.x
Overview
0
Commits
1
Pipelines
0
Changes
18
Closed
Issue #2570593: Allow entities to be subclassed using "bundle classes"
Brad Jones
requested to merge
issue/drupal-2570593:bundle-classes-9.3.x
into
9.3.x
Aug 1, 2021
Overview
0
Commits
1
Pipelines
0
Changes
18
Rebased for 9.3.x.
0
0
Merge request reports
Compare
9.3.x
version 1
d750301a
Aug 1, 2021
9.3.x (base)
and
latest version
latest version
5813c6a9
1 commit,
Aug 1, 2021
version 1
d750301a
14 commits,
Aug 1, 2021
18 files
+
482
−
59
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
+
2
−
1
View file @ 5813c6a9
Edit in single-file editor
Open in Web IDE
Show full file
@@ -214,7 +214,8 @@ protected function doLoadMultiple(array $ids = NULL) {
protected
function
doCreate
(
array
$values
)
{
// Set default language to current language if not provided.
$values
+=
[
$this
->
langcodeKey
=>
$this
->
languageManager
->
getCurrentLanguage
()
->
getId
()];
$entity
=
new
$this
->
entityClass
(
$values
,
$this
->
entityTypeId
);
$entity_class
=
$this
->
getEntityClass
();
$entity
=
new
$entity_class
(
$values
,
$this
->
entityTypeId
);
return
$entity
;
}
Loading