File "utils.php"
Full Path: /home/fahu5438/labouseuse.fr/wp-content/plugins/elementor/modules/announcements/classes/utils.php
File size: 631 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Elementor\Modules\Announcements\Classes;
use Elementor\Modules\Announcements\Triggers\{
IsFlexContainerInactive, AiStarted
};
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Utils {
/**
* get_trigger_object
*
* @param $trigger
*
* @return IsFlexContainerInactive|false
*/
public static function get_trigger_object( $trigger ) {
//@TODO - replace with trigger manager
switch ( $trigger['action'] ) {
case 'isFlexContainerInactive':
return new IsFlexContainerInactive();
case 'aiStared':
return new AiStarted();
default:
return false;
}
}
}