You are here

function panels_get_current_page_display in Panels 8.3

Same name and namespace in other branches
  1. 6.3 panels.module \panels_get_current_page_display()
  2. 7.3 panels.module \panels_get_current_page_display()

Get the display that is currently being rendered as a page.

Unlike in previous versions of this, this only returns the display, not the page itself, because there are a number of different ways to get to this point. It is hoped that the page data isn't needed at this point. If it turns out there is, we will do something else to get that functionality.

Related topics

File

./panels.module, line 968
panels.module

Code

function panels_get_current_page_display($change = NULL) {
  static $display = NULL;
  if ($change) {
    $display = $change;
  }
  return $display;
}