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
Coding Style
introduced
by
![]() |
|||
8 | * @copyright Copyright (c) 2022 nystudio107 |
||
0 ignored issues
–
show
|
|||
9 | */ |
||
0 ignored issues
–
show
|
|||
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 |