Files
doitinpoland.com/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/auto-translate/endpoints/GetATEJobsToSync.php
2023-09-12 21:41:04 +02:00

18 lines
392 B
PHP

<?php
namespace WPML\TM\ATE\AutoTranslate\Endpoint;
use WPML\Ajax\IHandler;
use WPML\Collect\Support\Collection;
use WPML\FP\Either;
use function WPML\Container\make;
class GetATEJobsToSync implements IHandler {
public function run( Collection $data ) {
return Either::of(
make( \WPML_TM_ATE_Job_Repository::class )->get_jobs_to_sync()->map_to_property( 'editor_job_id' )
);
}
}