PHP Class Timber\FunctionWrapper

Afficher le fichier Open project: jarednova/timber

Méthodes publiques

Méthode Description
__construct ( callable $function, array $args = [], boolean $return_output_buffer = false )
__toString ( )
add_to_twig ( Twig_Environment $twig ) : Twig_Environment
call ( ) : string

Private Methods

Méthode Description
_parse_args ( array $args, array $defaults ) : array

Method Details

__construct() public méthode

public __construct ( callable $function, array $args = [], boolean $return_output_buffer = false )
$function callable
$args array
$return_output_buffer boolean

__toString() public méthode

public __toString ( )

add_to_twig() public méthode

public add_to_twig ( Twig_Environment $twig ) : Twig_Environment
$twig Twig_Environment
Résultat Twig_Environment

call() public méthode

public call ( ) : string
Résultat string