This is a problem since we shouldn't implement one without the other.

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new3.83 KB

Patch attached that adds PanelsPaneController::buildContent() and uses it in view(). This brings the entity rendering more in line with core and also entity controllers in D8.

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tim.plunkett’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new606 bytes
+++ b/includes/PanelsPaneController.class.phpundefined
@@ -162,21 +162,20 @@ class PanelsPaneController extends DrupalDefaultEntityController {
-    $context = array(
-      'entity_type' => 'fieldable_panels_pane',

@@ -190,12 +189,53 @@ class PanelsPaneController extends DrupalDefaultEntityController {
-    $entity_type = 'fieldable_panels_pane';
-    drupal_alter(array('fieldable_panels_pane_view', 'entity_view'), $build, $entity_type);
+     // Allow modules to modify the structured pane.
+    drupal_alter(array('fieldable_panels_pane_view', 'entity_view'), $build, $context['entity_type']);

You use the $context array below but also remove it.

tim.plunkett’s picture

StatusFileSize
new640 bytes

Without call by reference bug.

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.