fewbricks\bricks\brick::get_html PHP Method

get_html() public method

public get_html ( array $args = [], mixed $brick_layouts = false ) : string
$args array Any arguments that you need to pass to the brick on runtime. Available as $this->get_html_args
$brick_layouts mixed Array or string with the file name(s) (without .php) of any layouts that you want to wrap the brick in. Layout files must be placed in [theme]/fewbricks/brick-layouts/.
return string
    public function get_html($args = [], $brick_layouts = false)
    {
        $this->set_brick_layouts($brick_layouts);
        $this->get_html_args = $args;
        return $this->get_brick_layouted_html($this->get_brick_html());
    }