# getwid/2.0.10/includes/blocks/template-library.php

Getwid – Gutenberg Blocks, version 2.0.10. 26 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.0.10/code/includes/blocks/template-library.php
- Raw: https://pluginprobe.com/plugins/getwid/2.0.10/raw/includes/blocks/template-library.php
- Modified: 2022-03-16T17:06:22+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/getwid/2.0.10/code/includes/blocks/template-library.php#L10-L20`.

```php
<?php

namespace Getwid\Blocks;

class TemplateLibrary extends \Getwid\Blocks\AbstractBlock {

	protected static $blockName = 'getwid/template-library';

    public function __construct() {

        parent::__construct( self::$blockName );

		register_block_type(
			'getwid/template-library'
		);
	}

	public function getLabel() {
		return __('Template Library', 'getwid');
	}
}

getwid()->blocksManager()->addBlock(
	new \Getwid\Blocks\TemplateLibrary()
);

```
