You are here

public function UltimenuManager::getEnabledBlocks in Ultimenu 8

Returns the enabled Ultimenu blocks.

Parameters

string $delta: The menu name.

Return value

array The enabled blocks.

Overrides UltimenuManagerInterface::getEnabledBlocks

1 call to UltimenuManager::getEnabledBlocks()
UltimenuManager::getUltimenuBlocks in src/UltimenuManager.php
Returns the Ultimenu blocks.

File

src/UltimenuManager.php, line 229

Class

UltimenuManager
Manages Ultimenu plugin.

Namespace

Drupal\ultimenu

Code

public function getEnabledBlocks($delta) {
  $blocks = $this
    ->getSetting('blocks');
  if (!empty($blocks[$delta])) {
    return TRUE;
  }
  return FALSE;
}