YetiForceCompany/YetiForceCRM

View on GitHub
modules/Contacts/ConfigTemplate.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
/**
 * Contacts module config.
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 */
return [
    'COLUMNS_IN_HIERARCHY' => [
        'default' => [],
        'description' => 'Columns visible in Contacts hierarchy [$label => $columnName]'
    ],
    'MAX_HIERARCHY_DEPTH' => [
        'default' => 50,
        'description' => 'Max depth of hierarchy',
        'validation' => '\App\Validator::naturalNumber'
    ],
    'COUNT_IN_HIERARCHY' => [
        'default' => true,
        'description' => 'Count Contacts in hierarchy',
        'validation' => '\App\Validator::bool',
        'sanitization' => '\App\Purifier::bool'
    ]
];