Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
32e23b57
Commit
32e23b57
authored
Jan 16, 2013
by
Dries
Browse files
Issue
#1888942
by dawehner: Rename viewStorageController::attachDisplays().
parent
ee1b6de6
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/ViewStorageController.php
View file @
32e23b57
...
...
@@ -35,7 +35,7 @@ public function load(array $ids = NULL) {
*/
protected
function
attachLoad
(
&
$queried_entities
,
$revision_id
=
FALSE
)
{
foreach
(
$queried_entities
as
$id
=>
$entity
)
{
$this
->
attachDisplay
s
(
$entity
);
$this
->
mergeDefaultDisplaysOption
s
(
$entity
);
}
parent
::
attachLoad
(
$queried_entities
,
$revision_id
);
...
...
@@ -70,16 +70,17 @@ public function create(array $values) {
$entity
=
parent
::
create
(
$values
);
$this
->
attachDisplay
s
(
$entity
);
$this
->
mergeDefaultDisplaysOption
s
(
$entity
);
return
$entity
;
}
/**
* Add defaults to the display options.
*
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The view entity to attach default displays options.
*/
protected
function
attachDisplay
s
(
EntityInterface
$entity
)
{
protected
function
mergeDefaultDisplaysOption
s
(
EntityInterface
$entity
)
{
if
(
isset
(
$entity
->
display
)
&&
is_array
(
$entity
->
display
))
{
$displays
=
array
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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