mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 21:56:33 +02:00
feat(directives): add short doc
This commit is contained in:
@@ -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']);
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -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')) {
|
||||
|
@@ -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')) {
|
||||
|
@@ -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')) {
|
||||
|
@@ -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')) {
|
||||
|
@@ -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')) {
|
||||
|
@@ -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')) {
|
||||
|
@@ -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')) {
|
||||
|
Reference in New Issue
Block a user