Element_Choice::get_element()

Returns the parent element for the element choice.

Description

See also

Return

(awsmug\Torro_Forms\DB_Objects\Elements\Element|null) Parent element, or null if none set.

Source

File: src/db-objects/element-choices/element-choice.php

	public function get_element() {
		if ( empty( $this->element_id ) ) {
			return null;
		}

		return $this->manager->get_parent_manager( 'elements' )->get( $this->element_id );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.