public function validate(PluginBundleInterface $plugin)
    {
        $validationErrors = [];

        foreach ($this->checkers as $checker) {
            if (null !== $errors = $checker->check($plugin, $this->isInUpdateMode())) {
                $validationErrors = array_merge($validationErrors, $errors);
                continue;
            }

            if ($checker instanceof ConfigurationChecker) {
                $this->pluginConfiguration = $checker->getProcessedConfiguration();
            }
        }

        return $validationErrors;
    }
public function validate(PluginBundleInterface $plugin)
    {
        $validationErrors = [];

        foreach ($this->checkers as $checker) {
            if (null !== $errors = $checker->check($plugin, $this->isInUpdateMode())) {
                $validationErrors = array_merge($validationErrors, $errors);
                continue;
            }

            if ($checker instanceof ConfigurationChecker) {
                $this->pluginConfiguration = $checker->getProcessedConfiguration();
            }
        }

        return $validationErrors;
    }
public function validate ( PluginBundleInterface $ plugin ) { $ validationErrors = [ ] ; foreach ( $ this -> checkers as $ checker ) { if ( null !== $ errors = $ checker -> check ( $ plugin , $ this -> isInUpdateMode ( ) ) ) { $ validationErrors = array_merge ( $ validationErrors , $ errors ) ; continue ; } if ( $ checker instanceof ConfigurationChecker ) { $ this -> pluginConfiguration = $ checker -> getProcessedConfiguration ( ) ; } } return $ validationErrors ; }
Validates a plugin.

@param PluginBundleInterface $plugin

@return ValidationError[]
Validates a plugin .