1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 13:16:45 +02:00

chore(shortcodes): update descriptions

This commit is contained in:
Awilum
2022-05-04 18:36:12 +03:00
parent fab2c4dc0e
commit 64d2fac325
4 changed files with 5 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ use function entries;
use function parsers;
use function registry;
// Shortcode: [entries-fetch id="entry-id" field="field-name" default="default-value"]
// Shortcode: [entries-fetch id="STRING" field="STRING" default="STRING"]
parsers()->shortcodes()->addHandler('entries-fetch', static function (ShortcodeInterface $s) {
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.entries.enabled')) {
return '';

View File

@@ -22,7 +22,7 @@ use Thunder\Shortcode\Shortcode\ShortcodeInterface;
use function parsers;
// Shortcode: [raw]
// Shortcode: [raw] shortcodes to escape [/raw]
parsers()->shortcodes()->addHandler('raw', static function (ShortcodeInterface $s) {
return $s->getContent();
});

View File

@@ -21,7 +21,7 @@ use Thunder\Shortcode\Shortcode\ShortcodeInterface;
use function parsers;
use function registry;
// Shortcode: [registry-get id="item-id" default="default-value"]
// Shortcode: [registry-get id="STRING" default="STRING"]
parsers()->shortcodes()->addHandler('registry-get', static function (ShortcodeInterface $s) {
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.registry.enabled')) {
return '';

View File

@@ -57,7 +57,8 @@ parsers()->shortcodes()->addHandler('getUriString', static function () {
return getUriString();
});
// Shortcode: [urlFor routeName="route-name" data='{"foo": "Foo"}' queryParams='{"foo": "Foo"}']
// Shortcode: [urlFor routeName="STRING" data="STRING(JSON)" queryParams="STRING(JSON)"]
// Example: [urlFor routeName="route-name" data='{"foo": "Foo"}' queryParams='{"foo": "Foo"}']
parsers()->shortcodes()->addHandler('urlFor', static function (ShortcodeInterface $s) {
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.url.enabled')) {
return '';