Habari\Block::get_form PHP Метод

get_form() публичный Метод

Get the form used to update this block
public get_form ( ) : FormUI
Результат FormUI The altered FormUI element that edits this block
    public function get_form()
    {
        $form = new FormUI('block-' . $this->id, 'block');
        $form->on_success(array($this, 'save_block'));
        Plugins::act('block_form_' . $this->type, $form, $this);
        Plugins::act('block_form', $form, $this);
        return $form;
    }