-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.php
62 lines (59 loc) · 1.97 KB
/
config.example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* Conventions plugin for Craft CMS 4.x
*
* Craft Conventions
*
* @link https://zaengle.com/
* @copyright Copyright (c) 2022 Zaengle Corp
*/
/**
* Conventions config.php
*
* This file exists only as a template for the Conventions settings.
* It does nothing on its own.
*
* Don't edit this file, instead copy it to 'craft/config' as 'conventions.php'
* and make your changes there to override default settings.
*
* Once copied to 'craft/config', this file will be multi-environment aware as
* well, so you can have different settings groups for each environment, just as
* you do for 'general.php'
*/
use craft\helpers\App;
return [
/**
* Pattern Types (Shorthand config)
*
* A `patterns` associative array where:
* - Keys defines the name of the PatternType's template helper ( e.g. `{{ partial('my-partial')`)
* - Values define the subdirectory within CRAFT_TEMPLATES_PATH to resolve this pattern type within
*
* Advanced / options syntax is also available if the shorthand doesn't meet your needs, see
* vendor/zaengle/craft-conventions/docs/02-advanced-config.md
*/
'patterns' => [
// <PatternTypeHandle> => <TemplateSubDir>
'partial' => '_partials',
'field' => '_fields',
'component' => '_components',
],
/**
* Default
*
* These settings apply to all PatternTypes defined above
*/
'defaults' => [
'params' => [
// Named params that *will be created if omitted* in the ctx passed to the pattern template
'ensure' => [],
// Named params that *must* be set in the ctx passed to the pattern template,
// or an error is thrown (in devMode)
'require' => [],
// Named params that *must not* be set in the ctx passed to the pattern template,
// or an error is thrown (in devMode)
'reject' => [],
],
'outputComments' => App::devMode(),
],
];