File "isolation-manager.php"

Full Path: /home/elegucvf/public_html/elementor/core/utils/isolation-manager.php
File size: 415 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Elementor\Core\Utils;

use Elementor\Plugin;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

abstract class Isolation_Manager {
	/**
	 * @param string $adapter_name
	 */
	public static function get_adapter( string $adapter_name ) {
		try {
			return Plugin::$instance->elementor_container()
				->get( $adapter_name );
		} catch ( Exception $e ) {
			return null;
		}
	}
}