WC_REST_Products_V2_Controller::get_data_for_etagprotectedWC 1.0

Get data for ETag generation, excluding fields that change on each request.

Метод класса: WC_REST_Products_V2_Controller{}

Хуков нет.

Возвращает

Массив. Cleaned data for ETag generation.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_data_for_etag( $data, $request, ?string $endpoint_id ): array;
$data(массив) (обязательный)
Response data.
$request(WP_REST_Request) (обязательный)
.
?string $endpoint_id
.
По умолчанию: null

Код WC_REST_Products_V2_Controller::get_data_for_etag() WC 10.5.2

protected function get_data_for_etag( array $data, WP_REST_Request $request, ?string $endpoint_id = null ): array { // phpcs:ignore Squiz.Commenting.FunctionComment.IncorrectTypeHint
	return $this->remove_related_ids_from_response_data( $data );
}