Carbon_Fields\Field\Html_Field::set_html PHP 메소드

set_html() 공개 메소드

Set the field HTML or callback that returns the HTML.
public set_html ( string | callable $callback_or_html )
$callback_or_html string | callable HTML or callable that returns the HTML.
    public function set_html($callback_or_html)
    {
        if (is_callable($callback_or_html)) {
            $this->field_html = call_user_func($callback_or_html);
        } else {
            $this->field_html = $callback_or_html;
        }
        return $this;
    }