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
파일: Timmy.php 프로젝트: mindkomm/timmy
 /**
  * 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