You are here

class TwigExtension in Webform 8.5

Twig extension with some useful functions and filters.

Hierarchy

Expanded class hierarchy of TwigExtension

Deprecated

as of Webform 8.x-5.x, will be removed in Webform 8.x-6.x. Instead extend and use WebformTwigExtension.

File

src/Twig/TwigExtension.php, line 11

Namespace

Drupal\webform\Twig
View source
class TwigExtension extends WebformTwigExtension {

}

Members

Namesort descending Modifiers Type Description Overrides
WebformTwigExtension::$options protected static property
WebformTwigExtension::buildTwigHelp public static function Build reusable Twig help.
WebformTwigExtension::buildTwigTemplate public static function Build a Twig template with a webform submission.
WebformTwigExtension::getFunctions public function
WebformTwigExtension::getName public function
WebformTwigExtension::hasEditTwigAccess public static function Determine if the current user can edit Twig templates.
WebformTwigExtension::renderTwigTemplate public static function Render a Twig template with a webform submission.
WebformTwigExtension::webformDebug public function Debug data by outputting YAML.
WebformTwigExtension::webformHtmlEditorCheckMarkup public function Runs HTML markup through (optional) text format.
WebformTwigExtension::webformToken public function Replace tokens in text.