fewbricks\bricks\demo_jumbotron::set_fields PHP Method

set_fields() public method

This is where all the fields for the brick will be set-
public set_fields ( )
    public function set_fields()
    {
        $this->add_field(new acf_fields\text('Headline', 'headline', '1603242311a'));
        $this->add_field(new acf_fields\textarea('Text', 'text', '1603242313a'));
        $this->add_brick((new demo_button('button', '1603242312a'))->set_field_label_prefix('Button'));
    }