| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Modules\FullSiteImport\Runners; |
| 4 |
|
| 5 |
use Templately\Modules\FullSiteImport\Runners\BaseRunner; |
| 6 |
|
| 7 |
class Taxonomies extends BaseRunner { |
| 8 |
public function get_name(): string { |
| 9 |
return 'taxonomies'; |
| 10 |
} |
| 11 |
|
| 12 |
public function get_label(): string { |
| 13 |
return __( 'Taxonomies', 'templately' ); |
| 14 |
} |
| 15 |
|
| 16 |
public function should_run( $data, $imported_data = [] ): bool { |
| 17 |
// === DEPRECATED / UNUSED (kept intentionally) === |
| 18 |
// Taxonomy import is NOT implemented and this runner is NOT registered in |
| 19 |
// Import::register_runners(). Force-decline so it can never silently import |
| 20 |
// nothing if it is ever wired into the pipeline by mistake (034 FR-009). |
| 21 |
return false; |
| 22 |
} |
| 23 |
|
| 24 |
public function log_message(): string { |
| 25 |
return __( 'Importing Taxonomies', 'templately' ); |
| 26 |
} |
| 27 |
|
| 28 |
public function import( $data, $imported_data ): array { |
| 29 |
// === DEPRECATED / UNUSED (kept intentionally) === |
| 30 |
// Not implemented — see should_run(); returns no imported data. |
| 31 |
return []; |
| 32 |
} |
| 33 |
} |