Total Complexity | 1 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class Settings extends Model |
||
25 | { |
||
26 | // Public Properties |
||
27 | // ========================================================================= |
||
28 | |||
29 | /** |
||
30 | * @var bool Whether to allow anonymous access be allowed to the twigfield/autocomplete/index endpoint |
||
31 | */ |
||
32 | public $allowFrontendAccess = false; |
||
33 | |||
34 | /** |
||
35 | * @var string[] The default autcompletes to use for the default `Twigfield` field type |
||
36 | */ |
||
37 | public $defaultTwigfieldAutocompletes = [ |
||
38 | CraftApiAutocomplete::class, |
||
39 | TwigLanguageAutocomplete::class, |
||
40 | SectionShorthandFieldsAutocomplete::class, |
||
41 | ]; |
||
42 | |||
43 | // Public Methods |
||
44 | // ========================================================================= |
||
45 | |||
46 | /** |
||
47 | * @inheritdoc |
||
48 | */ |
||
49 | public function defineRules(): array |
||
57 |