src/helpers/BaseYaml.php
/**
     * Generates a summary of the validation errors.
     *
     * Based on [[\yii\helpers\BaseJson::errorSummary()]]
     * @copyright Copyright (c) 2008 Yii Software LLC
     * @license http://www.yiiframework.com/license/
     *
     * @param Model|Model[] $models the model(s) whose validation errors are to be displayed.
     * @param array $options the tag options in terms of name-value pairs. The following options are specially handled:
     *
     * - showAllErrors: boolean, if set to true every error message for each attribute will be shown otherwise
     *   only the first error message for each attribute will be shown. Defaults to `false`.
     *
     * @return string the generated error summary
     */
Generates a summary of the validation errors.

@param Model|Model[] $models the model(s) whose validation errors are to be displayed.
@param array $options the tag options in terms of name-value pairs. The following options are specially handled.

- showAllErrors: boolean, if set to true every error message for each attribute will be shown otherwise
only the first error message for each attribute will be shown. Defaults to `false`.

@return string the generated error summary
Generates a summary of the validation errors . @param Model|Model [] $models the model ( s ) whose validation errors are to be displayed . @param array $options the tag options in terms of name - value pairs . The following options are specially handled . - showAllErrors : boolean if set to true every error message for each attribute will be shown otherwise only the first error message for each attribute will be shown . Defaults to ` false ` . @return string the generated error summary
public static function errorSummary($models, $options = [])
    {
        $showAllErrors = ArrayHelper::remove($options, 'showAllErrors', false);
        $lines = self::collectErrors($models, $showAllErrors);
        return static::encode($lines);
    }
public static function errorSummary ( $ models , $ options = [ ] ) { $ showAllErrors = ArrayHelper :: remove ( $ options , 'showAllErrors' , false ) ; $ lines = self :: collectErrors ( $ models , $ showAllErrors ) ; return static :: encode ( $ lines ) ; }
Generates a summary of the validation errors.
Generates a summary of the validation errors .