Commit | Line | Data |
---|---|---|
9a78af90 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
4 | | Copyright CiviCRM LLC. All rights reserved. | | |
5 | | | | |
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 | | |
9 | +--------------------------------------------------------------------+ | |
10 | */ | |
11 | ||
12 | /** | |
13 | * | |
14 | * @package CiviCRM | |
15 | * @copyright CiviCRM LLC https://civicrm.org/licensing | |
16 | */ | |
17 | class CRM_Utils_Monaco { | |
18 | ||
19 | /** | |
20 | * Get a list of JS variables (`CRM.crmMonaco`) to provide to the browser. | |
21 | * | |
22 | * @return array | |
23 | * @see CRM_Utils_Hook::alterAngular() | |
24 | */ | |
25 | public static function getSettings() { | |
26 | return [ | |
27 | 'paths' => [ | |
28 | 'vs' => Civi::paths()->getUrl('[civicrm.bower]/monaco-editor/min/vs'), | |
29 | ], | |
30 | ]; | |
31 | } | |
32 | ||
33 | } |