Skip to content

Commit bd0642f

Browse files
author
Avikarsha Saha
committed
const
1 parent 2482e7e commit bd0642f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

EventListener/TokenSubscriber.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ class TokenSubscriber implements EventSubscriberInterface
4848
use MatchFilterForLeadTrait;
4949
use QueryBuilderManipulatorTrait;
5050

51+
private const CUSTOM_ITEMS_LIMIT = 15;
52+
5153
/**
5254
* @var ConfigProvider
5355
*/
@@ -462,7 +464,7 @@ private function getCustomItems(CustomObject $customObject, string $leadId): arr
462464
$orderBy = CustomItem::TABLE_ALIAS.'.id';
463465
$orderDir = 'DESC';
464466

465-
$tableConfig = new TableConfig(15, 1, $orderBy, $orderDir);
467+
$tableConfig = new TableConfig(self::CUSTOM_ITEMS_LIMIT, 1, $orderBy, $orderDir);
466468
$tableConfig->addParameter('customObjectId', $customObject->getId());
467469
$tableConfig->addParameter('filterEntityType', 'contact');
468470
$tableConfig->addParameter('filterEntityId', $leadId);

0 commit comments

Comments
 (0)