public function CheeseburgerMenuBlock::getConfigValue in Cheeseburger Menu 5.0.x
Returns config value.
Parameters
string $key: Config name.
mixed $default_value: Default value that will be returned if config is not set.
Return value
mixed Config value.
5 calls to CheeseburgerMenuBlock::getConfigValue()
- CheeseburgerMenuBlock::build in src/
Plugin/ Block/ CheeseburgerMenuBlock.php - Builds and returns the renderable array for this block plugin.
- CheeseburgerMenuBlock::buildConfigurationForm in src/
Plugin/ Block/ CheeseburgerMenuBlock.php - Form constructor.
- CheeseburgerMenuBlock::calculateDependencies in src/
Plugin/ Block/ CheeseburgerMenuBlock.php - CheeseburgerMenuBlock::onDependencyRemoval in src/
Plugin/ Block/ CheeseburgerMenuBlock.php - Currently unused.
- CheeseburgerMenuBlock::submitConfigurationForm in src/
Plugin/ Block/ CheeseburgerMenuBlock.php - Most block plugins should not override this method. To add submission handling for a specific block type, override BlockBase::blockSubmit().
File
- src/
Plugin/ Block/ CheeseburgerMenuBlock.php, line 114
Class
- CheeseburgerMenuBlock
- Provides a 'CheeseburgerMenu' block.
Namespace
Drupal\cheeseburger_menu\Plugin\BlockCode
public function getConfigValue($key, $default_value = NULL) {
if (isset($this->configuration[$key])) {
return $this->configuration[$key];
}
return $default_value;
}