# jetformbuilder/3.6.6/includes/blocks/blocks-repository-base.php

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

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/includes/blocks/blocks-repository-base.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/includes/blocks/blocks-repository-base.php
- Modified: 2026-04-27T14:38:54+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/includes/blocks/blocks-repository-base.php#L10-L20`.

```php
<?php


namespace Jet_Form_Builder\Blocks;

use JFB_Components\Repository\Repository_Pattern_Trait;
use Jet_Form_Builder\Exceptions\Repository_Exception;

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

abstract class Blocks_Repository_Base {

	use Repository_Pattern_Trait;

	/**
	 * @param $block_type
	 *
	 * @throws Repository_Exception
	 */
	public function rep_before_install_item( $block_type ) {
		/** @var Types\Base $block_type */

		do_action( 'jet-form-builder/block-type/before-install', $block_type );

		// throw exception & exclude from repository if block is not supported
		if ( ! $block_type->is_supported() ) {
			$this->_rep_abort_this();
		}
	}

	/**
	 * @param $block_type
	 */
	public function rep_after_install_item( $block_type ) {
		/** @var Types\Base $block_type */

		$block_type->register_block_type();
	}

}

```
