first commit

This commit is contained in:
salam committed 2026-10-19 08:18:39 +02:00
commit 1218dd1517
12716 files changed
+989233

No files matched your search

@@ -0,0 +1,27 @@
<?php
declare(strict_types = 1);
/*
* This file is part of the package bk2k/bootstrap-package.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
namespace BK2K\BootstrapPackage\ExpressionLanguage;
use TYPO3\CMS\Core\ExpressionLanguage\AbstractProvider;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* ConditionProvider
*/
class ConditionProvider extends AbstractProvider
{
public function __construct()
{
$this->expressionLanguageVariables = [
'extension' => GeneralUtility::makeInstance(ExtensionWrapper::class)
];
}
}
@@ -0,0 +1,28 @@
<?php
declare(strict_types = 1);
/*
* This file is part of the package bk2k/bootstrap-package.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
namespace BK2K\BootstrapPackage\ExpressionLanguage;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
/**
* ExtensionWrapper
*/
class ExtensionWrapper
{
/**
* @param string $extensionKey
* @return bool
*/
public function isLoaded($extensionKey): bool
{
return ExtensionManagementUtility::isLoaded($extensionKey);
}
}