Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
name.php
1
<?php
2
3
namespace
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config
;
4
5
use
Bitrix\Main\Config
;
6
use
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields
;
7
8
final
class
Name
implements
IConfigField
9
{
16
static
function
getDefaultValue
()
17
{
18
return
[
'name'
=> Config\Option::get(
'main'
,
'site_name'
,
null
) ?? (defined(
'SITE_SERVER_NAME'
)? SITE_SERVER_NAME :
''
)];
19
}
20
27
static
function
checkValue
($value): bool
28
{
29
return
is_array($value) && array_key_exists(
'name'
,$value) && is_string($value[
'name'
]);
30
}
31
35
static
function
available
(): bool
36
{
37
return
true
;
38
}
39
43
static
function
required
(): bool
44
{
45
return
true
;
46
}
47
48
public
static
function
prepareValue
($value)
49
{
50
return
$value;
51
52
}
53
}
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\Name
Definition
name.php:9
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\Name\getDefaultValue
static getDefaultValue()
Definition
name.php:16
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\Name\checkValue
static checkValue($value)
Definition
name.php:27
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\Name\prepareValue
static prepareValue($value)
Definition
name.php:48
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\Name\available
static available()
Definition
name.php:35
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\Name\required
static required()
Definition
name.php:43
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\IConfigField
Definition
iconfigfield.php:8
Bitrix\Main\Config
Definition
configuration.php:2
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config
Definition
abstractconfigfield.php:3
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields
modules
seo
lib
businesssuite
configuration
facebook
fields
config
name.php
Создано системой
1.10.0