Submission::get_form()

Returns the parent form for the submission.

Description

See also

Return

(awsmug\Torro_Forms\DB_Objects\Forms\Form|null) Parent form, or null if none set.

Source

File: src/db-objects/submissions/submission.php

	public function get_form() {
		if ( empty( $this->form_id ) ) {
			return null;
		}

		return $this->manager->get_parent_manager( 'forms' )->get( $this->form_id );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.