• Twig\Extension\AbstractExtension


  • Twig\Extension\ExtensionInterface

The Media Twig extension class implements common Twig functions and filters.

Public methods

public array getFilters()

Returns a list of filters this extensions provides.

public array getFunctions()

Returns a list of functions to add to the existing list.

public array getTokenParsers()

Returns a list of token parsers this extensions provides.

public string mediaFilter(string $file)

Converts supplied file to a URL relative to the media library.

  • string $file - Specifies the media-relative file

Show inherited public methods

Inherited public methods

  • public void getNodeVisitors() - defined in Twig\Extension\AbstractExtension.
  • public void getOperators() - defined in Twig\Extension\AbstractExtension.
  • public void getTests() - defined in Twig\Extension\AbstractExtension.