You are here

public function TBMegaMenuBuilder::createAnimationOptions in The Better Mega Menu 8

Same name and namespace in other branches
  1. 2.x src/TBMegaMenuBuilder.php \Drupal\tb_megamenu\TBMegaMenuBuilder::createAnimationOptions()

Create options for animation.

Parameters

array $block_config: The block configuration.

Return value

array The default block configuration.

Overrides TBMegaMenuBuilderInterface::createAnimationOptions

File

src/TBMegaMenuBuilder.php, line 258

Class

TBMegaMenuBuilder
Defines a TBMegaMenuBuilder.

Namespace

Drupal\tb_megamenu

Code

public function createAnimationOptions(array $block_config) {
  return [
    'none' => $this
      ->t('None'),
    'fading' => $this
      ->t('Fading'),
    'slide' => $this
      ->t('Slide'),
    'zoom' => $this
      ->t('Zoom'),
    'elastic' => $this
      ->t('Elastic'),
  ];
}