interfaces
2 years ago
sources
2 years ago
base-source-resolver.php
2 years ago
countries-source-resolver.php
2 years ago
days-source-resolver.php
2 years ago
module.php
2 years ago
months-source-resolver.php
2 years ago
countries-source-resolver.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Modules\Bulk_Options; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | use JFB_Modules\Bulk_Options\Interfaces\Source_Resolve_Interface; |
| 12 | |
| 13 | class Countries_Source_Resolver implements Source_Resolve_Interface { |
| 14 | |
| 15 | public function rep_item_id() { |
| 16 | return 'countries'; |
| 17 | } |
| 18 | |
| 19 | public function get_label(): string { |
| 20 | return __( 'Countries', 'jet-form-builder' ); |
| 21 | } |
| 22 | |
| 23 | public function resolve(): array { |
| 24 | /** @noinspection PhpUnhandledExceptionInspection */ |
| 25 | /** @var Module $module */ |
| 26 | $module = jet_form_builder()->module( 'bulk-options' ); |
| 27 | |
| 28 | return require_once $module->get_dir( 'sources/countries.php' ); |
| 29 | } |
| 30 | } |
| 31 |