public ViewExecutable::initDisplay()
Sets the display for this view and initializes the display handler.
Return value
true Always returns TRUE.
File
- core/modules/views/src/ViewExecutable.php, line 712
Class
- ViewExecutable
- Represents a view as a whole.
Namespace
Drupal\views
Code
public function initDisplay() { if (isset($this->current_display)) { return TRUE; } // Initialize the display cache array. $this->displayHandlers = new DisplayPluginCollection($this, Views::pluginManager('display')); $this->current_display = 'default'; $this->display_handler = $this->displayHandlers->get('default'); return TRUE; }
Please login to continue.