public ViewEntityInterface::duplicateDisplayAsType($old_display_id, $new_display_type)
Duplicates an existing display into a new display type.
For example clone to display a page display as a block display.
Parameters
string $old_display_id: The origin of the duplicated display.
string $new_display_type: The display type of the new display.
Return value
string The display ID of the new display.
File
- core/modules/views/src/ViewEntityInterface.php, line 49
Class
- ViewEntityInterface
- Defines an interface for View storage classes.
Namespace
Drupal\views
Code
1 | public function duplicateDisplayAsType( $old_display_id , $new_display_type ); |
Please login to continue.