Call from PHP?
ursbraem opened this issue · comments
Is Typogrify only designed for use from Twig, or is it possible to call it (eg smartypants) directly from PHP (as in element api)? If so, can you give me a hint on the syntax?
use nystudio107\typogrify\Typogrify;
Typogrify::$plugin->typogrify->typogrify($text, $isTitle);
Thanks @joshuabaker !!
@ursbraem If you’re set please can you close this. 😊