$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. $this->action = $action; $this->data = $data; $this->wp_list_table = TablePress::load_class( 'TablePress_Editor_Button_Thickbox_List_Table', 'class-editor-button-thickbox-list-table.php', 'views' ); $this->wp_list_table->set_items( $this->data['table_ids'] ); $this->wp_list_table->prepare_items(); } /** * Renders the current view. * * @since 1.0.0 */ #[\Override] public function render(): void { _wp_admin_html_begin(); wp_print_styles( 'colors' ); wp_print_scripts( 'jquery-core' ); ?>
' . __( 'Search results for “%s”', 'tablepress' ) . '', esc_html( wp_unslash( $_GET['s'] ) ) ); } ?> wp_list_table->display(); ?>