# gutenberg/7.4.0/lib/block-directory.php

Gutenberg, version 7.4.0. 22 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/7.4.0/code/lib/block-directory.php
- Raw: https://pluginprobe.com/plugins/gutenberg/7.4.0/raw/lib/block-directory.php
- Modified: 2019-11-13T19:50:00+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/gutenberg/7.4.0/code/lib/block-directory.php#L10-L20`.

```php
<?php
/**
 * Block directory functions.
 *
 * @package gutenberg
 */

if (
	gutenberg_is_experiment_enabled( 'gutenberg-block-directory' ) &&
	! has_action( 'admin_enqueue_scripts', 'enqueue_block_editor_assets_block_directory' )
) {
	/**
	 * Function responsible for enqueuing the assets required
	 * for the block directory functionality in the editor.
	 */
	function gutenberg_enqueue_block_editor_assets_block_directory() {
		wp_enqueue_script( 'wp-block-directory' );
		wp_enqueue_style( 'wp-block-directory' );
	}
	add_action( 'enqueue_block_editor_assets', 'gutenberg_enqueue_block_editor_assets_block_directory' );
}

```
