function page_manager_display_variant_plugin_alter in Page Manager 8.4
Implements hook_display_variant_plugin_alter().
File
- ./
page_manager.module, line 26 - Provides a way to place blocks on a custom page.
Code
function page_manager_display_variant_plugin_alter(array &$definitions) {
// Disable the layout builder plugin if layout builder is not enabled.
if (!_page_manager_is_layout_builder_enabled()) {
unset($definitions['layout_builder']);
}
}