public function getPluginWrapper($instanceId)
    {
        if ($this->pluginWrappers->count() < 1) {
            return null;
        }

        /** @var PluginWrapper $pluginWrapper */
        foreach ($this->pluginWrappers as $pluginWrapper) {
            if ($pluginWrapper->getInstance()->getInstanceId() == $instanceId) {
                return $pluginWrapper;
            }
        }

        return null;
    }
public function getPluginWrapper($instanceId)
    {
        if ($this->pluginWrappers->count() < 1) {
            return null;
        }

        /** @var PluginWrapper $pluginWrapper */
        foreach ($this->pluginWrappers as $pluginWrapper) {
            if ($pluginWrapper->getInstance()->getInstanceId() == $instanceId) {
                return $pluginWrapper;
            }
        }

        return null;
    }
public function getPluginWrapper ( $ instanceId ) { if ( $ this -> pluginWrappers -> count ( ) < 1 ) { return null ; } /** @var PluginWrapper $pluginWrapper */ foreach ( $ this -> pluginWrappers as $ pluginWrapper ) { if ( $ pluginWrapper -> getInstance ( ) -> getInstanceId ( ) == $ instanceId ) { return $ pluginWrapper ; } } return null ; }
Get Plugin Instance Wrapper by Instance Id

@param integer $instanceId

@return PluginWrapper
Get Plugin Instance Wrapper by Instance Id