for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Zikula package.
*
* Copyright Zikula - https://ziku.la/
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zikula\ThemeModule\Menu;
use Knp\Menu\ItemInterface;
use Zikula\MenuModule\ExtensionMenu\AbstractExtensionMenu;
class ExtensionMenu extends AbstractExtensionMenu
{
protected function getAdmin(): ?ItemInterface
if (!$this->permissionApi->hasPermission($this->getBundleName() . '::', '::', ACCESS_ADMIN)) {
return null;
}
$menu = $this->factory->createItem('themeAdminMenu');
$menu->addChild('Settings', [
'route' => 'zikulathememodule_config_config',
])->setAttribute('icon', 'fas fa-wrench');
return 0 === $menu->count() ? null : $menu;
public function getBundleName(): string
return 'ZikulaThemeModule';