Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
93ce8cb0
Commit
93ce8cb0
authored
Sep 30, 2012
by
Angie Byron
Browse files
Issue
#1796604
by andypost: Fixed Make constructor parameters consistent.
parent
195f1f80
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
View file @
93ce8cb0
...
...
@@ -28,7 +28,7 @@ abstract class ConfigEntityBase extends Entity implements ConfigEntityInterface
/**
* Overrides Entity::__construct().
*/
public
function
__construct
(
array
$values
=
array
()
,
$entity_type
)
{
public
function
__construct
(
array
$values
,
$entity_type
)
{
parent
::
__construct
(
$values
,
$entity_type
);
// Backup the original ID, if any.
...
...
core/lib/Drupal/Core/Entity/Entity.php
View file @
93ce8cb0
...
...
@@ -52,7 +52,7 @@ class Entity implements IteratorAggregate, EntityInterface {
/**
* Constructs a new entity object.
*/
public
function
__construct
(
array
$values
=
array
()
,
$entity_type
)
{
public
function
__construct
(
array
$values
,
$entity_type
)
{
$this
->
entityType
=
$entity_type
;
// Set initial values.
foreach
(
$values
as
$key
=>
$value
)
{
...
...
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