diff --git a/src/flextype/core/Entries/Directives/CalcDirective.php b/src/flextype/core/Entries/Directives/CalcDirective.php index 00becef2..a22dfbd5 100644 --- a/src/flextype/core/Entries/Directives/CalcDirective.php +++ b/src/flextype/core/Entries/Directives/CalcDirective.php @@ -17,6 +17,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; use ChrisKonnertz\StringCalc\StringCalc; +// Directive: @calc() emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.calc.enabled')) { @@ -34,4 +35,5 @@ emitter()->addListener('onEntriesFetchSingleField', static function (): void { entries()->registry()->set('methods.fetch.field.key', $field['key']); entries()->registry()->set('methods.fetch.field.value', $field['value']); -}); \ No newline at end of file +}); + diff --git a/src/flextype/core/Entries/Directives/ConstantsDirective.php b/src/flextype/core/Entries/Directives/ConstantsDirective.php index 460c21fb..93d1713a 100644 --- a/src/flextype/core/Entries/Directives/ConstantsDirective.php +++ b/src/flextype/core/Entries/Directives/ConstantsDirective.php @@ -16,6 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; +// Directive: @const() emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.constants.enabled')) { diff --git a/src/flextype/core/Entries/Directives/FieldsDirective.php b/src/flextype/core/Entries/Directives/FieldsDirective.php index 6a7b0e79..8e071ea3 100644 --- a/src/flextype/core/Entries/Directives/FieldsDirective.php +++ b/src/flextype/core/Entries/Directives/FieldsDirective.php @@ -16,6 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; +// Directive: @field() emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.fields.enabled')) { diff --git a/src/flextype/core/Entries/Directives/MarkdownDirective.php b/src/flextype/core/Entries/Directives/MarkdownDirective.php index a1072fb4..dbbc037f 100644 --- a/src/flextype/core/Entries/Directives/MarkdownDirective.php +++ b/src/flextype/core/Entries/Directives/MarkdownDirective.php @@ -16,6 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; +// Directive: @markdown emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.markdown.enabled')) { diff --git a/src/flextype/core/Entries/Directives/ShortcodesDirective.php b/src/flextype/core/Entries/Directives/ShortcodesDirective.php index eb52e346..429bfc5f 100644 --- a/src/flextype/core/Entries/Directives/ShortcodesDirective.php +++ b/src/flextype/core/Entries/Directives/ShortcodesDirective.php @@ -16,6 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; +// Directive: @shortcodes emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.shortcodes.enabled')) { diff --git a/src/flextype/core/Entries/Directives/TextileDirective.php b/src/flextype/core/Entries/Directives/TextileDirective.php index 09a41c5b..5174ab3e 100644 --- a/src/flextype/core/Entries/Directives/TextileDirective.php +++ b/src/flextype/core/Entries/Directives/TextileDirective.php @@ -16,6 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; +// Directive: @textile emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.textile.enabled')) { diff --git a/src/flextype/core/Entries/Directives/TypesDirective.php b/src/flextype/core/Entries/Directives/TypesDirective.php index ee4b3d2e..65b51dbb 100644 --- a/src/flextype/core/Entries/Directives/TypesDirective.php +++ b/src/flextype/core/Entries/Directives/TypesDirective.php @@ -16,6 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; +// Directive: @type() emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.types.enabled')) { diff --git a/src/flextype/core/Entries/Directives/VarsDirective.php b/src/flextype/core/Entries/Directives/VarsDirective.php index 54d0d9c5..0a406ea5 100644 --- a/src/flextype/core/Entries/Directives/VarsDirective.php +++ b/src/flextype/core/Entries/Directives/VarsDirective.php @@ -16,6 +16,7 @@ declare(strict_types=1); use Glowy\Arrays\Arrays as Collection; +// Directive: @var() emitter()->addListener('onEntriesFetchSingleField', static function (): void { if (! registry()->get('flextype.settings.entries.directives.vars.enabled')) {