Habari\Plugins::load_from_file PHP Метод

load_from_file() публичный статический Метод

Initialize all loaded plugins by calling their load() method
public static load_from_file ( string $file, boolean $activate = true ) : Plugin
$file string the class name to load
$activate boolean True if the plugin's load() method should be called
Результат Plugin The instantiated plugin class
    public static function load_from_file($file, $activate = true)
    {
        $class = self::class_from_filename($file);
        return self::load($class, $activate);
    }