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)
  • 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

  • $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

  • $definition