public function get_plugins() {
        $this->init_pluginsinfo_property();

        // Make sure all types are initialised.
        foreach ($this->pluginsinfo as $plugintype => $list) {
            if ($list === null) {
                $this->get_plugins_of_type($plugintype);
            }
        }

        return $this->pluginsinfo;
    }
public function get_plugins() {
        $this->init_pluginsinfo_property();

        // Make sure all types are initialised.
        foreach ($this->pluginsinfo as $plugintype => $list) {
            if ($list === null) {
                $this->get_plugins_of_type($plugintype);
            }
        }

        return $this->pluginsinfo;
    }
public function get_plugins ( ) { $ this -> init_pluginsinfo_property ( ) ; // Make sure all types are initialised. foreach ( $ this -> pluginsinfo as $ plugintype => $ list ) { if ( $ list === null ) { $ this -> get_plugins_of_type ( $ plugintype ) ; } } return $ this -> pluginsinfo ; }
Returns a tree of known plugins and information about them

@return array 2D array. The first keys are plugin type names (e.g. qtype);
the second keys are the plugin local name (e.g. multichoice); and
the values are the corresponding objects extending {@link \core\plugininfo\base}
Returns a tree of known plugins and information about them