You are here

function _page_manager_is_layout_builder_enabled in Page Manager 8.4

Helper to check if layout builder is enabled.

Return value

bool TRUE is layout_builder is enabled, otherwise FALSE.

2 calls to _page_manager_is_layout_builder_enabled()
page_manager_display_variant_plugin_alter in ./page_manager.module
Implements hook_display_variant_plugin_alter().
page_manager_entity_type_build in ./page_manager.module
Implements hook_entity_type_build().

File

./page_manager.module, line 39
Provides a way to place blocks on a custom page.

Code

function _page_manager_is_layout_builder_enabled() {
  return Drupal::moduleHandler()
    ->moduleExists('layout_builder');
}