public function BootstrapLayout::livePreviewIsEnabled in Bootstrap Layout Builder 2.x
Helper function to get live preview status.
Return value
bool Live preview status.
1 call to BootstrapLayout::livePreviewIsEnabled()
- BootstrapLayout::buildConfigurationForm in src/
Plugin/ Layout/ BootstrapLayout.php - Form constructor.
File
- src/
Plugin/ Layout/ BootstrapLayout.php, line 240
Class
- BootstrapLayout
- A layout from our bootstrap layout builder.
Namespace
Drupal\bootstrap_layout_builder\Plugin\LayoutCode
public function livePreviewIsEnabled() {
$config = $this->configFactory
->get('bootstrap_layout_builder.settings');
$live_preview = FALSE;
if ($config
->get('live_preview')) {
$live_preview = (bool) $config
->get('live_preview');
}
return $live_preview;
}