You are here

public function TBMegaMenuAdminController::getTheme in The Better Mega Menu 8

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

Get the machine name of a theme.

Parameters

array $data: A decoded JSON object used to load the configuration.

Return value

mixed An string or null.

2 calls to TBMegaMenuAdminController::getTheme()
TBMegaMenuAdminController::loadMenuConfig in src/Controller/TBMegaMenuAdminController.php
Loads a menu configuration.
TBMegaMenuAdminController::saveMenuConfig in src/Controller/TBMegaMenuAdminController.php
Saves a menu configuration.

File

src/Controller/TBMegaMenuAdminController.php, line 316

Class

TBMegaMenuAdminController
Handler for configuring and saving MegaMenu settings.

Namespace

Drupal\tb_megamenu\Controller

Code

public function getTheme(array $data) {
  return isset($data['theme']) ? $data['theme'] : NULL;
}