Timber\Helper::function_wrapper PHP Метод

function_wrapper() публичный статический Метод

public static function_wrapper ( mixed $function_name, $defaults = [], $return_output_buffer = false ) : FunctionWrapper | mixed
$function_name mixed or array( $class( string|object ), $function_name )
Результат FunctionWrapper | mixed
    public static function function_wrapper($function_name, $defaults = array(), $return_output_buffer = false)
    {
        return new FunctionWrapper($function_name, $defaults, $return_output_buffer);
    }

Usage Example

Пример #1
0
 /**
  * Add functions to Timber context
  *
  * @param   array   $context    Timber context
  * @return  array   $context    Adapted Timber context
  */
 public function filter_timber_context($context)
 {
     Timber\Helper::function_wrapper('get_timber_image_responsive_acf');
     return $context;
 }
All Usage Examples Of Timber\Helper::function_wrapper