# getwid/2.0.7/includes/blocks/anchor.php

Getwid – Gutenberg Blocks, version 2.0.7. 27 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.0.7/code/includes/blocks/anchor.php
- Raw: https://pluginprobe.com/plugins/getwid/2.0.7/raw/includes/blocks/anchor.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.7/code/includes/blocks/anchor.php#L10-L20`.

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

```
