$data Data for this view. */ #[\Override] public function setup( /* string */ $action, array $data ) /* : void */ { // Don't use type hints in the method declaration to prevent PHP errors, as the method is inherited. parent::setup( $action, $data ); $this->add_text_box( 'no-javascript', array( $this, 'textbox_no_javascript' ), 'header' ); $this->process_action_messages( array( 'error_add' => __( 'Error: The table could not be added.', 'tablepress' ), ) ); $this->admin_page->enqueue_script( 'add' ); $this->add_text_box( 'head', array( $this, 'textbox_head' ), 'normal' ); $this->add_text_box( 'add-table', array( $this, 'textbox_add_table' ), 'normal' ); } /** * Prints the screen head text. * * @since 1.0.0 * * @param array $data Data for this screen. * @param array $box Information about the text box. */ public function textbox_head( array $data, array $box ): void { ?>

$data Data for this screen. * @param array $box Information about the text box. */ public function textbox_add_table( array $data, array $box ): void { echo '
'; } } // class TablePress_Add_View