# betterdocs/4.9.2/includes/Editors/BlockEditor/Blocks/Navigation.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 4.9.2. 28 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.2/code/includes/Editors/BlockEditor/Blocks/Navigation.php
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.2/raw/includes/Editors/BlockEditor/Blocks/Navigation.php
- Modified: 2024-12-09T12:10:16+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/betterdocs/4.9.2/code/includes/Editors/BlockEditor/Blocks/Navigation.php#L10-L20`.

```php
<?php

namespace WPDeveloper\BetterDocs\Editors\BlockEditor\Blocks;

use WPDeveloper\BetterDocs\Editors\BlockEditor\Block;

class Navigation extends Block {
	public function get_name() {
		return 'doc-navigation';
	}

	public function get_default_attributes() {
		return [
			'blockId' => ''
		];
	}

	public function render( $attributes, $content ) {
		betterdocs()->views->get(
			'templates/parts/navigation',
			[
				'wrapper_class' => 'betterdocs-elementor-navigation',
				'blockId'       => $this->attributes['blockId']
			]
		);
	}
}

```
