HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/wp-content/plugins/loco-translate/src/admin/list/PluginsController.php
<?php
/**
 * List all bundles of type "plugin"
 * Route: loco-plugin
 */
class Loco_admin_list_PluginsController extends Loco_admin_list_BaseController {

    
    public function render(){

        $this->set( 'type', 'plugin' );
        $this->set( 'title', __( 'Translate plugins', 'loco-translate' ) );
        
        foreach( Loco_package_Plugin::get_plugins() as $handle => $data ){
            try {
                $bundle = Loco_package_Plugin::create( $handle );
                $this->addBundle($bundle);
            }
            // @codeCoverageIgnoreStart
            catch( Exception $e ){
                $bundle = new Loco_package_Plugin( $handle, $handle );
                $this->addBundle( $bundle );
            }
            // @codeCoverageIgnoreEnd
        }
        
        return parent::render();
    }

    
}