You are here

public function BootstrapLayout::responsiveIsEnabled in Bootstrap Layout Builder 2.x

Helper function to get responsive status.

Return value

bool responsive status.

1 call to BootstrapLayout::responsiveIsEnabled()
BootstrapLayout::buildConfigurationForm in src/Plugin/Layout/BootstrapLayout.php
Form constructor.

File

src/Plugin/Layout/BootstrapLayout.php, line 255

Class

BootstrapLayout
A layout from our bootstrap layout builder.

Namespace

Drupal\bootstrap_layout_builder\Plugin\Layout

Code

public function responsiveIsEnabled() {
  $config = $this->configFactory
    ->get('bootstrap_layout_builder.settings');
  $responsive = FALSE;
  if ($config
    ->get('responsive')) {
    $responsive = (bool) $config
      ->get('responsive');
  }
  return $responsive;
}