You are here

public function UltimenuBlock::delta in Ultimenu 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Block/UltimenuBlock.php \Drupal\ultimenu\Plugin\Block\UltimenuBlock::delta()
1 call to UltimenuBlock::delta()
UltimenuBlock::build in src/Plugin/Block/UltimenuBlock.php
Builds and returns the renderable array for this block plugin.

File

src/Plugin/Block/UltimenuBlock.php, line 63

Class

UltimenuBlock
Provides an 'Ultimenu' block.

Namespace

Drupal\ultimenu\Plugin\Block

Code

public function delta() {

  // Derivatives are prefixed with 'ultimenu-', e.g.: ultimenu-main.
  $id = $this
    ->getDerivativeId();
  return substr($id, 9);
}