Issues (731)

src/config.php (7 issues)

1
<?php
2
/**
3
 * CodeEditor for Craft CMS
4
 *
5
 * Provides a code editor field with Twig & Craft API autocomplete
6
 *
7
 * @link      https://nystudio107.com
0 ignored issues
show
The tag in position 1 should be the @copyright tag
Loading history...
8
 * @copyright Copyright (c) 2022 nystudio107
0 ignored issues
show
@copyright tag must contain a year and the name of the copyright holder
Loading history...
9
 */
0 ignored issues
show
PHP version not specified
Loading history...
Missing @category tag in file comment
Loading history...
Missing @package tag in file comment
Loading history...
Missing @author tag in file comment
Loading history...
Missing @license tag in file comment
Loading history...
10
11
/**
12
 * CodeEditor config.php
13
 *
14
 * This file exists to store config settings for CodeEditor. This file can
15
 * be used in place, or it can be put into @craft/config/ as `codeeditor.php`
16
 *
17
 * This file is multi-environment aware as well, so you can have different
18
 * settings groups for each environment, just as you do for `general.php`
19
 */
20
21
use nystudio107\codeeditor\autocompletes\CraftApiAutocomplete;
22
use nystudio107\codeeditor\autocompletes\SectionShorthandFieldsAutocomplete;
23
use nystudio107\codeeditor\autocompletes\TwigLanguageAutocomplete;
24
25
return [
26
    // Whether to allow anonymous access be allowed to the codeeditor/autocomplete/index endpoint
27
    'allowFrontendAccess' => false,
28
    // Whether to allow frontend templates access to the `codeeditor/codeEditor.twig` Twig template
29
    'allowTemplateAccess' => true,
30
    // The default autocompletes to use for the default `CodeEditor` field type
31
    'defaultCodeEditorAutocompletes' => [
32
        CraftApiAutocomplete::class,
33
        TwigLanguageAutocomplete::class,
34
        SectionShorthandFieldsAutocomplete::class,
35
    ],
36
];
37