Elementor\Element_Base::start_controls_tab PHP Метод

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

public start_controls_tab ( $tab_id, $args )
    public function start_controls_tab($tab_id, $args)
    {
        if (!empty($this->_current_tab['inner_tab'])) {
            wp_die(sprintf('Elementor: You can\'t start a tab before the end of the previous tab: `%s`', $this->_current_tab['inner_tab']));
        }
        $args['type'] = Controls_Manager::TAB;
        $args['tabs_wrapper'] = $this->_current_tab['tabs_wrapper'];
        $this->add_control($tab_id, $args);
        $this->_current_tab['inner_tab'] = $tab_id;
    }