API_Action::api()

Returns the configured API instance this action uses.

Description

See also

Return

(APIAPI\Core\Request\API) The configured API instance.

Source

File: src/modules/actions/api-action.php

	protected function api() {
		if ( null === $this->lazyloaded_api ) {
			$this->lazyloaded_api = $this->module->apiapi()->get_api_object( $this->api_structure_name );
		}

		return $this->lazyloaded_api;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.