Spaces:
No application file
No application file
File size: 539 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<?php
declare(strict_types=1);
namespace Mautic\LeadBundle\Field\Settings;
use Mautic\CoreBundle\Helper\CoreParametersHelper;
class BackgroundSettings
{
public const CREATE_CUSTOM_FIELD_IN_BACKGROUND = 'create_custom_field_in_background';
public function __construct(
private CoreParametersHelper $coreParametersHelper
) {
}
public function shouldProcessColumnChangeInBackground(): bool
{
return (bool) $this->coreParametersHelper->get(self::CREATE_CUSTOM_FIELD_IN_BACKGROUND, false);
}
}
|