Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
32e23b57
Commit
32e23b57
authored
Jan 16, 2013
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1888942
by dawehner: Rename viewStorageController::attachDisplays().
parent
ee1b6de6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
core/modules/views/lib/Drupal/views/ViewStorageController.php
.../modules/views/lib/Drupal/views/ViewStorageController.php
+5
-4
No files found.
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
Markdown
is supported
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