init
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user