registerArgument('extensionKey', 'string', 'Extension which must be checked', true); parent::initializeArguments(); } /** * @param array|null $arguments * @return bool */ protected static function evaluateCondition($arguments = null): bool { return ExtensionManagementUtility::isLoaded($arguments['extensionKey']); } /** * @return mixed */ public function render() { if (static::evaluateCondition($this->arguments)) { return $this->renderThenChild(); } return $this->renderElseChild(); } }