Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
EmojiConverter.php
1
<?php
2
3
namespace
Bitrix\MessageService\Providers\Edna\WhatsApp\Old
;
4
5
class
EmojiConverter
extends
\Bitrix\MessageService\Providers\Edna\WhatsApp\EmojiConverter
6
{
7
protected
function
convertKeyboardSection
(?array $keyboardSection,
string
$type): array
8
{
9
if
(
10
isset($keyboardSection[
'row'
][
'buttons'
])
11
&& is_array($keyboardSection[
'row'
][
'buttons'
])
12
)
13
{
14
foreach
($keyboardSection[
'row'
][
'buttons'
] as $index => $button)
15
{
16
if
(isset($button[
'text'
]))
17
{
18
$keyboardSection[
'row'
][
'buttons'
][$index][
'text'
] = $this->
convertEmoji
($button[
'text'
], $type);
19
}
20
}
21
}
22
23
return
$keyboardSection;
24
}
25
26
}
Bitrix\MessageService\Providers\Edna\WhatsApp\EmojiConverter
Definition
EmojiConverter.php:8
Bitrix\MessageService\Providers\Edna\WhatsApp\EmojiConverter\convertEmoji
convertEmoji(string $text, string $type)
Definition
EmojiConverter.php:32
Bitrix\MessageService\Providers\Edna\WhatsApp\Old\EmojiConverter\convertKeyboardSection
convertKeyboardSection(?array $keyboardSection, string $type)
Definition
EmojiConverter.php:7
Bitrix\MessageService\Providers\Edna\WhatsApp\Old
Definition
Constants.php:3
modules
messageservice
lib
Providers
Edna
WhatsApp
Old
EmojiConverter.php
Создано системой
1.10.0