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
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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.