Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
threadintent.php
1
<?php
2
3
namespace
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config
;
4
5
final
class
ThreadIntent
extends
AbstractConfigField
6
{
7
8
private
static
function
checkUrl($value) :
bool
9
{
10
return
array_key_exists(
'cta_button_url'
,$value) &&
11
is_string($value[
'cta_button_url'
]) &&
12
preg_match(static::URL_PATTERN,$value[
'cta_button_url'
]);
13
}
14
15
protected
static
function
checkValueFields
($value): bool
16
{
17
return
static::checkUrl($value);
18
19
}
20
24
static
function
available
(): bool
25
{
26
return
true
;
27
}
28
32
static
function
required
(): bool
33
{
34
return
false
;
35
}
36
37
protected
static
function
getFields
() : array
38
{
39
return
array_merge(parent::getFields(),[
'cta_button_url'
,
'cta_button_text'
]);
40
}
41
}
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\AbstractConfigField
Definition
abstractconfigfield.php:7
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\ThreadIntent
Definition
threadintent.php:6
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\ThreadIntent\checkValueFields
static checkValueFields($value)
Definition
threadintent.php:15
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\ThreadIntent\getFields
static getFields()
Definition
threadintent.php:37
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\ThreadIntent\available
static available()
Definition
threadintent.php:24
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config\ThreadIntent\required
static required()
Definition
threadintent.php:32
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Config
Definition
abstractconfigfield.php:3
modules
seo
lib
businesssuite
configuration
facebook
fields
config
threadintent.php
Создано системой
1.10.0