Issues (1181)

src/config.php (7 issues)

1
<?php
2
/**
3
 * Twigfield for Craft CMS
4
 *
5
 * Provides a twig 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
 * Twigfield config.php
13
 *
14
 * This file exists to store config settings for Twigfield. This file can
15
 * be used in place, or it can be put into @craft/config/ as `twigfield.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\twigfield\autocompletes\CraftApiAutocomplete;
22
use nystudio107\twigfield\autocompletes\SectionShorthandFieldsAutocomplete;
23
use nystudio107\twigfield\autocompletes\TwigLanguageAutocomplete;
24
25
return [
26
    // Whether to allow anonymous access be allowed to the twigfield/autocomplete/index endpoint
27
    'allowFrontendAccess' => false,
28
    // The default autcompletes to use for the default `Twigfield` field type
29
    'defaultTwigfieldAutocompletes' => [
30
        CraftApiAutocomplete::class,
31
        TwigLanguageAutocomplete::class,
32
        SectionShorthandFieldsAutocomplete::class,
33
    ]
34
];
35