Tribe__Events__Editor__Blocks__Event_Organizer::render( array $attributes = array() )

Since we are dealing with a Dynamic type of Block we need a PHP method to render it


Parameters

$attributes

(array) (Optional)

Default value: array()


Top ↑

Return

(string)


Top ↑

Source

File: src/Tribe/Editor/Blocks/Event_Organizer.php

	public function render( $attributes = array() ) {
		$args['attributes'] = $this->attributes( $attributes );

		// Add the rendering attributes into global context
		tribe( 'events.editor.template' )->add_template_globals( $args );

		return tribe( 'events.editor.template' )->template( array( 'blocks', $this->slug() ), $args, false );
	}

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.