# elasticpress/5.0.2/includes/classes/Feature/Facets/Block.php

ElasticPress, version 5.0.2. 34 lines.

- Page: https://pluginprobe.com/plugins/elasticpress/5.0.2/code/includes/classes/Feature/Facets/Block.php
- Raw: https://pluginprobe.com/plugins/elasticpress/5.0.2/raw/includes/classes/Feature/Facets/Block.php
- Modified: 2023-11-01T18:08:28+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/elasticpress/5.0.2/code/includes/classes/Feature/Facets/Block.php#L10-L20`.

```php
<?php
/**
 * Abstract Facet Block class.
 *
 * @since 4.7.0
 * @package elasticpress
 */

namespace ElasticPress\Feature\Facets;

/**
 * Abstract Facet Block class.
 */
abstract class Block {

	/**
	 * Setup hooks and filters for facet block.
	 */
	abstract public function setup();

	/**
	 * Register facet block.
	 */
	abstract public function register_block();

	/**
	 * Render the block.
	 *
	 * @param array $attributes Block attributes.
	 * @return string
	 */
	abstract  public function render_block( $attributes );
}

```
