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

Content: new shortcode [registry] added to access registry inside the pages

This commit is contained in:
Awilum
2018-05-16 10:50:51 +03:00
parent f9fca941c2
commit 301e288620

View File

@@ -382,6 +382,10 @@ class Content
Content::shortcode()->addHandler('block', function(ShortcodeInterface $s) {
return Content::getBlock($s->getParameter('name'));
});
Content::shortcode()->addHandler('registry', function(ShortcodeInterface $s) {
return Registry::get($s->getParameter('item'));
});
}
/**