base-render-state.php
3 years ago
custom-render-state.php
3 years ago
default-state.php
3 years ago
render-state-replace-exception.php
3 years ago
custom-render-state.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Blocks\Conditional_Block\Render_States; |
| 5 | |
| 6 | |
| 7 | class Custom_Render_State extends Base_Render_State { |
| 8 | |
| 9 | private $state_id = ''; |
| 10 | |
| 11 | public function get_title(): string { |
| 12 | return ''; |
| 13 | } |
| 14 | |
| 15 | public function is_supported(): bool { |
| 16 | return true; |
| 17 | } |
| 18 | |
| 19 | public function get_id(): string { |
| 20 | return $this->state_id; |
| 21 | } |
| 22 | |
| 23 | |
| 24 | public function set_id( string $state_id ) { |
| 25 | $this->state_id = $state_id; |
| 26 | } |
| 27 | } |