base-render-state.php
2 years ago
custom-render-state.php
2 years ago
default-state.php
2 years ago
render-state-replace-exception.php
2 years ago
default-state.php
40 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Blocks\Conditional_Block\Render_States; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | class Default_State extends Base_Render_State { |
| 12 | |
| 13 | public function get_id(): string { |
| 14 | return 'DEFAULT.STATE'; |
| 15 | } |
| 16 | |
| 17 | public function get_title(): string { |
| 18 | return __( 'Normal form output process', 'jet-form-builder' ); |
| 19 | } |
| 20 | |
| 21 | public function is_supported_on_current(): bool { |
| 22 | return false; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * @return bool |
| 27 | */ |
| 28 | public function is_supported(): bool { |
| 29 | return true; |
| 30 | } |
| 31 | |
| 32 | public function can_be_switched(): bool { |
| 33 | return true; |
| 34 | } |
| 35 | |
| 36 | public function exclude_states(): array { |
| 37 | return array(); |
| 38 | } |
| 39 | } |
| 40 |