oont-contents/plugins/elementor/core/utils/isolation-manager.php
2025-02-08 15:10:23 +01:00

23 lines
415 B
PHP

<?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;
}
}
}