System\Classes\MarkupExtensionItem

Class MarkupExtensionItem

Public properties

public string $name

public string $type

public callable $callback

public bool $escapeOutput

Public methods

public static static createFromArray(array|string $data)
Parameters
  • array|string $data

public void getTwigOptions()

getTwigOptions returns options passed to the Twig definition

public void getWildCallback($name)

getWildCallback replaces wildcard with a real callable function

Parameters
  • $name

public void isWildCallable()

isWildCallable will test if the callback uses a wildcard, for example, str_ can route to Str::

Protected methods

protected static void parseDefinition($definition)

parseDefinition will check if a callable definition contains output escaping

Parameters
  • $definition