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
b673b60b
Commit
b673b60b
authored
Feb 21, 2014
by
webchick
Browse files
Issue
#2090509
follow-up by yched, andypost: Fix some type-hinting.
parent
ecca161f
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/entity/lib/Drupal/entity/Entity/EntityViewDisplay.php
View file @
b673b60b
...
...
@@ -52,7 +52,7 @@ class EntityViewDisplay extends EntityDisplayBase implements EntityViewDisplayIn
* party code to alter the display options held in the display before they are
* used to generate render arrays.
*
* @param \Drupal\Core\Entity\EntityInterface[] $entities
* @param \Drupal\Core\Entity\
Content
EntityInterface[] $entities
* The entities being rendered. They should all be of the same entity type.
* @param string $view_mode
* The view mode being rendered.
...
...
@@ -144,7 +144,7 @@ public static function collectRenderDisplays($entities, $view_mode) {
*
* See the collectRenderDisplays() method for details.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\
Content
EntityInterface $entity
* The entity being rendered.
* @param string $view_mode
* The view mode.
...
...
@@ -154,7 +154,7 @@ public static function collectRenderDisplays($entities, $view_mode) {
*
* @see \Drupal\entity\Entity\EntityDisplay::collectRenderDisplays()
*/
public
static
function
collectRenderDisplay
(
$entity
,
$view_mode
)
{
public
static
function
collectRenderDisplay
(
ContentEntityInterface
$entity
,
$view_mode
)
{
$displays
=
static
::
collectRenderDisplays
(
array
(
$entity
),
$view_mode
);
return
$displays
[
$entity
->
bundle
()];
}
...
...
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