Tribe__Editor__Provider::register()

Binds and sets up implementations.

Contents


Source

File: src/Tribe/Editor/Provider.php

	public function register() {
		// Setup to check if gutenberg is active
		$this->container->singleton( 'editor', 'Tribe__Editor' );
		$this->container->singleton( 'editor.utils', 'Tribe__Editor__Utils' );
		$this->container->singleton( 'common.editor.configuration', 'Tribe__Editor__Configuration' );

		if ( ! tribe( 'editor' )->should_load_blocks() ) {
			return;
		}

		$this->container->singleton( 'editor.assets', 'Tribe__Editor__Assets', array( 'hook' ) );

		$this->hook();

		// Initialize the correct Singletons
		tribe( 'editor.assets' );
	}

Top ↑

Changelog

Changelog
Version Description
4.8 Introduced.