Container::get_form()

Returns the parent form for the container.

Description

See also

Return

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

Source

File: src/db-objects/containers/container.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.