You are here

public function SmartMenusBlock::isToggleEnabled in Smartmenus.js 8

Return value

int Returns 0,1 depending on the values of the checkbox.

1 call to SmartMenusBlock::isToggleEnabled()
SmartMenusBlock::build in src/Plugin/Block/SmartMenusBlock.php
Builds and returns the renderable array for this block plugin.

File

src/Plugin/Block/SmartMenusBlock.php, line 196

Class

SmartMenusBlock
Provides a 'SmartMenusBlock' block.

Namespace

Drupal\smartmenus\Plugin\Block

Code

public function isToggleEnabled() {
  return $this
    ->getConfiguration()['smartmenus_toggle'];
}