> $table_data Table data in which formulas shall be evaluated. * @param string $table_id ID of the passed table. * @return array> Table data with evaluated formulas. */ public function evaluate_table_data( array $table_data, string $table_id ): array { $use_legacy_evaluate_class = $this->_should_use_legacy_evaluate_class(); // Choose the Table Evaluate library based on the PHP version and the filter hook value. if ( $use_legacy_evaluate_class ) { $evaluate_class = TablePress::load_class( 'TablePress_Evaluate_Legacy', 'class-evaluate-legacy.php', 'classes' ); } else { $evaluate_class = TablePress::load_class( 'TablePress_Evaluate_PHPSpreadsheet', 'class-evaluate-phpspreadsheet.php', 'classes' ); } return $evaluate_class->evaluate_table_data( $table_data, $table_id ); } } // class TablePress_Evaluate