get_raw_list( array( 'offset' => 0, 'limit' => 15, ) ); } public function get_global_actions(): array { return array(); } public function get_total(): int { return 0; } public function get_empty_message(): string { return __( 'No items found.', 'jet-form-builder' ); } public function get_rest_methods(): string { return ''; } public function get_rest_url(): string { return ''; } public function get_receive_endpoint(): array { return ( new Rest_Endpoint( $this ) )->to_array(); } public function load_data(): array { return array(); } /** * @return array */ final public function load_view(): array { try { $this->prepare_dependencies(); } catch ( Sql_Exception $exception ) { return array( 'list' => array(), 'columns' => array(), 'actions' => array(), ); } return array_merge( array( 'list' => $this->get_prepared_list(), 'columns' => $this->get_columns_headings(), 'actions' => $this->get_global_actions(), 'total' => $this->get_total(), 'receive_url' => $this->get_receive_endpoint(), 'empty_message' => $this->get_empty_message(), ), $this->load_data() ); } }