class QuestionTypeExtension extends Twig_Extension

Class QuestionTypeExtension is injected as alligator.type_extension service. QuestionTypeExtension handles the logic and provides necessary data for managed entity in twig.

Methods

string
getName()

Returns the name of the extension.

getFunctions()

{@inheritdoc}

array
getPossibleValues()

Get possible question types

array
getPossibleValuesForHtml()

Get possible question values for html

Details

at line 23
string getName()

Returns the name of the extension.

Return Value

string The extension name

at line 31
getFunctions()

{@inheritdoc}

at line 43
array getPossibleValues()

Get possible question types

Return Value

array

at line 52
array getPossibleValuesForHtml()

Get possible question values for html

Return Value

array