You are here

public function PageManagerSectionStorage::isLayoutBuilderEnabled in Page Manager 8.4

Determines if Layout Builder is enabled.

Return value

bool TRUE if Layout Builder is enabled, FALSE otherwise.

Throws

\Drupal\Component\Plugin\Exception\PluginException

1 call to PageManagerSectionStorage::isLayoutBuilderEnabled()
PageManagerSectionStorage::isApplicable in src/Plugin/SectionStorage/PageManagerSectionStorage.php
Determines if this section storage is applicable for the current contexts.

File

src/Plugin/SectionStorage/PageManagerSectionStorage.php, line 226

Class

PageManagerSectionStorage
Defines the 'page_manager' section storage type.

Namespace

Drupal\page_manager\Plugin\SectionStorage

Code

public function isLayoutBuilderEnabled() {
  return $this
    ->getContextValue('entity')
    ->getVariantPlugin() instanceof LayoutBuilderDisplayVariant;
}