Element::get_container()

Returns the parent container for the element.

Description

See also

Return

(awsmug\Torro_Forms\DB_Objects\Containers\Container|null) Parent container, or null if none set.

Source

File: src/db-objects/elements/element.php

	public function get_container() {
		if ( empty( $this->container_id ) ) {
			return null;
		}

		return $this->manager->get_parent_manager( 'containers' )->get( $this->container_id );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.