Files
2026-09-15 10:35:56 +08:00

36 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
namespace Esun\MultiLocaleTranslation\Model;
class WikiFields
{
public const CATEGORY = [
'title' => ['label' => 'Title', 'is_html' => false],
'summary' => ['label' => 'Summary', 'is_html' => false],
'content' => ['label' => 'Content', 'is_html' => true],
'meta_title' => ['label' => 'Meta Title', 'is_html' => false],
'meta_description' => ['label' => 'Meta Description', 'is_html' => false],
'meta_keywords' => ['label' => 'Meta Keywords', 'is_html' => false],
];
public const HOMEPAGE = [
'title' => ['label' => 'Title', 'is_html' => false],
'content' => ['label' => 'Content', 'is_html' => true],
'meta_title' => ['label' => 'Meta Title', 'is_html' => false],
'meta_description' => ['label' => 'Meta Description', 'is_html' => false],
'meta_keywords' => ['label' => 'Meta Keywords', 'is_html' => false],
];
public static function categoryCodes(): array
{
return array_keys(self::CATEGORY);
}
public static function homepageCodes(): array
{
return array_keys(self::HOMEPAGE);
}
}