Merge pull request #18500 from eileenmcnaughton/loc
[civicrm-core.git] / settings / Developer.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035
TO
16 */
17/*
18 * Settings metadata file
19 */
20
dfe1f88a
CW
21return [
22 'assetCache' => [
e7b8261d
TO
23 'group_name' => 'Developer Preferences',
24 'group' => 'developer',
25 'name' => 'assetCache',
26 'type' => 'String',
27 'quick_form_type' => 'Select',
28 'html_type' => 'Select',
dfe1f88a 29 'html_attributes' => [
e7b8261d 30 //'class' => 'crm-select2',
dfe1f88a 31 ],
e7b8261d
TO
32 'default' => 'auto',
33 'add' => '4.7',
86401282 34 'title' => ts('Asset Caching'),
e7b8261d
TO
35 'is_domain' => 1,
36 'is_contact' => 0,
86401282 37 'description' => ts('Store computed JS/CSS content in cache files? (Note: In "Auto" mode, the "Debug" setting will determine whether to activate the cache.)'),
e7b8261d 38 'help_text' => NULL,
dfe1f88a 39 'pseudoconstant' => [
e7b8261d 40 'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
dfe1f88a
CW
41 ],
42 ],
43 'userFrameworkLogging' => [
6a488035
TO
44 'group_name' => 'Developer Preferences',
45 'group' => 'developer',
0b2bdd13 46 'name' => 'userFrameworkLogging',
6a488035
TO
47 'type' => 'Boolean',
48 'quick_form_type' => 'YesNo',
49 'default' => '0',
50 'add' => '4.3',
86401282 51 'title' => ts('Enable Drupal Watchdog Logging'),
6a488035
TO
52 'is_domain' => 1,
53 'is_contact' => 0,
86401282 54 'description' => ts('Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs.'),
0b2bdd13 55 'help_text' => "Set this value to Yes if you want CiviCRM error/debugging messages the appear in your CMS' error log. In the case of Drupal, this will cause all CiviCRM error messages to appear in the watchdog (assuming you have Drupal's watchdog enabled)",
dfe1f88a
CW
56 ],
57 'debug_enabled' => [
6a488035
TO
58 'group_name' => 'Developer Preferences',
59 'group' => 'developer',
0b2bdd13 60 'name' => 'debug_enabled',
7a807364
SL
61 // we can't call the setting debug as that has other meanings in api
62 'config_key' => 'debug',
6a488035
TO
63 'type' => 'Boolean',
64 'quick_form_type' => 'YesNo',
65 'default' => '0',
66 'add' => '4.3',
86401282 67 'title' => ts('Enable Debugging'),
6a488035
TO
68 'is_domain' => 1,
69 'is_contact' => 0,
86401282 70 'description' => ts("Set this value to Yes if you want to use one of CiviCRM's debugging tools. This feature should NOT be enabled for production sites."),
0b2bdd13 71 'help_text' => 'Do not turn this on on production sites',
dfe1f88a
CW
72 ],
73 'backtrace' => [
6a488035
TO
74 'group_name' => 'Developer Preferences',
75 'group' => 'developer',
76 'name' => 'backtrace',
6a488035
TO
77 'type' => 'Boolean',
78 'quick_form_type' => 'YesNo',
79 'default' => '0',
80 'add' => '4.3',
86401282 81 'title' => ts('Display Backtrace'),
6a488035
TO
82 'is_domain' => 1,
83 'is_contact' => 0,
86401282 84 'description' => ts('Set this value to Yes if you want to display a backtrace listing when a fatal error is encountered. This feature should NOT be enabled for production sites.'),
dfe1f88a
CW
85 ],
86 'environment' => [
f008885c
E
87 'group_name' => 'Developer Preferences',
88 'group' => 'developer',
89 'name' => 'environment',
90 'type' => 'String',
91 'html_type' => 'Select',
92 'quick_form_type' => 'Select',
93 'default' => 'Production',
dfe1f88a 94 'pseudoconstant' => [
f008885c 95 'optionGroupName' => 'environment',
dfe1f88a 96 ],
f008885c 97 'add' => '4.7',
86401282 98 'title' => ts('Environment'),
f008885c
E
99 'is_domain' => 1,
100 'is_contact' => 0,
86401282 101 'description' => ts('Setting to define the environment in which this CiviCRM instance is running.'),
dfe1f88a 102 'on_change' => [
03c5ceba 103 'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
dfe1f88a
CW
104 ],
105 ],
106 'fatalErrorHandler' => [
6a488035
TO
107 'group_name' => 'Developer Preferences',
108 'group' => 'developer',
109 'name' => 'fatalErrorHandler',
6a488035 110 'type' => 'String',
fd0e547b
EM
111 'quick_form_type' => 'Element',
112 'html_type' => 'text',
08e57c58 113 'default' => NULL,
6a488035 114 'add' => '4.3',
86401282 115 'title' => ts('Fatal Error Handler'),
6a488035
TO
116 'is_domain' => 1,
117 'is_contact' => 0,
86401282 118 'description' => ts('Enter the path and class for a custom PHP error-handling function if you want to override built-in CiviCRM error handling for your site.'),
dfe1f88a
CW
119 ],
120];