public function BootstrapLayout::sectionSettingsIsHidden in Bootstrap Layout Builder 1.x
Same name and namespace in other branches
- 2.x src/Plugin/Layout/BootstrapLayout.php \Drupal\bootstrap_layout_builder\Plugin\Layout\BootstrapLayout::sectionSettingsIsHidden()
Helper function to get section settings show/hide status.
Return value
bool Section settings status.
2 calls to BootstrapLayout::sectionSettingsIsHidden()
- BootstrapLayout::buildConfigurationForm in src/
Plugin/ Layout/ BootstrapLayout.php - Form constructor.
- BootstrapLayout::submitConfigurationForm in src/
Plugin/ Layout/ BootstrapLayout.php - Form submission handler.
File
- src/
Plugin/ Layout/ BootstrapLayout.php, line 224
Class
- BootstrapLayout
- A layout from our bootstrap layout builder.
Namespace
Drupal\bootstrap_layout_builder\Plugin\LayoutCode
public function sectionSettingsIsHidden() {
$config = $this->configFactory
->get('bootstrap_layout_builder.settings');
$hide_section_settings = FALSE;
if ($config
->get('hide_section_settings')) {
$hide_section_settings = (bool) $config
->get('hide_section_settings');
}
return $hide_section_settings;
}