27 lines
613 B
PHP
27 lines
613 B
PHP
<?php
|
|
|
|
namespace humhub\modules\space_profiles\components;
|
|
|
|
use Yii;
|
|
|
|
class TemplateRegistry
|
|
{
|
|
public const TEMPLATE_RESCUE_CENTER = 'rescue_center';
|
|
|
|
public static function options(): array
|
|
{
|
|
return [
|
|
self::TEMPLATE_RESCUE_CENTER => Yii::t('SpaceProfilesModule.base', 'Rescue Center (Default)'),
|
|
];
|
|
}
|
|
|
|
public static function resolveView(?string $templateKey): string
|
|
{
|
|
if ($templateKey === self::TEMPLATE_RESCUE_CENTER || empty($templateKey)) {
|
|
return 'templates/rescue-center';
|
|
}
|
|
|
|
return 'templates/rescue-center';
|
|
}
|
|
}
|