# automatic-youtube-gallery/2.9.1/block/src/index.js

Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists &amp; Channels, version 2.9.1. 18 lines.

- Page: https://pluginprobe.com/plugins/automatic-youtube-gallery/2.9.1/code/block/src/index.js
- Raw: https://pluginprobe.com/plugins/automatic-youtube-gallery/2.9.1/raw/block/src/index.js
- Modified: 2023-05-13T11:39: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/automatic-youtube-gallery/2.9.1/code/block/src/index.js#L10-L20`.

```javascript
/**
 * Import block dependencies
 */
import { registerBlockType } from '@wordpress/blocks';

import Edit from './edit';
import metadata from './block.json';

import { getBlockAttributes } from './helper.js';

/**
 * Register the block.
 */
registerBlockType( metadata.name, {
	attributes: getBlockAttributes(),
	edit: Edit
} );

```
