# jetformbuilder/3.6.6/modules/validation/messages/base-message.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 42 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/validation/messages/base-message.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/modules/validation/messages/base-message.php
- Modified: 2024-02-01T14:15:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/validation/messages/base-message.php#L10-L20`.

```php
<?php


namespace JFB_Modules\Validation\Messages;

use Jet_Form_Builder\Blocks\Block_Helper;
use Jet_Form_Builder\Classes\Arrayable\Arrayable;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

abstract class Base_Message implements Arrayable {

	abstract public function get_id(): string;

	abstract public function get_label(): string;

	abstract public function get_initial(): string;

	public function to_array(): array {
		return array(
			'id'        => $this->get_id(),
			'label'     => $this->get_label(),
			'initial'   => $this->get_initial(),
			'macros'    => $this->get_macros(),
			'supported' => Block_Helper::get_block_names( $this->supported_blocks() ),
		);
	}

	public function get_macros(): array {
		return array();
	}

	public function supported_blocks(): array {
		return array();
	}


}

```
