public View::mergeDefaultDisplaysOptions()
Add defaults to the display options.
Overrides ViewEntityInterface::mergeDefaultDisplaysOptions
File
- core/modules/views/src/Entity/View.php, line 426
Class
- View
- Defines a View configuration entity class.
Namespace
Drupal\views\Entity
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | public function mergeDefaultDisplaysOptions() { $displays = array (); foreach ( $this ->get( 'display' ) as $key => $options ) { $options += array ( 'display_options' => array (), 'display_plugin' => NULL, 'id' => NULL, 'display_title' => '' , 'position' => NULL, ); // Add the defaults for the display. $displays [ $key ] = $options ; } $this ->set( 'display' , $displays ); } |
Please login to continue.