class GenerateTooltipExtension extends Twig_Extension

Class GenerateTooltipExtension

Constants

ALL_CLASSES_MAPPED_CLASS_NAME_WITH_NAMESPACE

Methods

__construct(EntityManager $em, Client $cache, TranslatorInterface $translator)

GenerateTooltipExtension constructor.

getFunctions()

{@inheritdoc}

string
getPropertyTooltip(string $class, string $property)

Get translated property short description

string
getPropertyTooltipHtml(string $class, string $property)

Get translated property short description as HTML

Details

at line 59
__construct(EntityManager $em, Client $cache, TranslatorInterface $translator)

GenerateTooltipExtension constructor.

Parameters

EntityManager $em
Client $cache
TranslatorInterface $translator

at line 69
getFunctions()

{@inheritdoc}

at line 86
string getPropertyTooltip(string $class, string $property)

Get translated property short description

Parameters

string $class
string $property

Return Value

string

Exceptions

ReflectionException

at line 100
string getPropertyTooltipHtml(string $class, string $property)

Get translated property short description as HTML

Parameters

string $class
string $property

Return Value

string

Exceptions

ReflectionException