src/Fieldset/Validator.php
public static function getUpdateErrors(array $data, array $errors = [])
    {
        if (isset($data['singular']) && empty($data['singular'])) {
            $errors['singular'] = 'Singular is required';
        }

        if (isset($data['plural']) && empty($data['plural'])) {
            $errors['plural'] = 'Plural is required';
        }

        if (isset($data['name']) && empty($data['name'])) {
            $errors['name'] = 'Keyword is required';
        }

        if (!isset($data['fields']) || empty($data['fields'])) {
            $errors['fields'] = 'Fields is required';
        }

        return self::getOptionalErrors($data, $errors);
    }
public static function getUpdateErrors(array $data, array $errors = [])
    {
        if (isset($data['singular']) && empty($data['singular'])) {
            $errors['singular'] = 'Singular is required';
        }

        if (isset($data['plural']) && empty($data['plural'])) {
            $errors['plural'] = 'Plural is required';
        }

        if (isset($data['name']) && empty($data['name'])) {
            $errors['name'] = 'Keyword is required';
        }

        if (!isset($data['fields']) || empty($data['fields'])) {
            $errors['fields'] = 'Fields is required';
        }

        return self::getOptionalErrors($data, $errors);
    }
public static function getUpdateErrors ( array $ data , array $ errors = [ ] ) { if ( isset ( $ data [ 'singular' ] ) && empty ( $ data [ 'singular' ] ) ) { $ errors [ 'singular' ] = 'Singular is required' ; } if ( isset ( $ data [ 'plural' ] ) && empty ( $ data [ 'plural' ] ) ) { $ errors [ 'plural' ] = 'Plural is required' ; } if ( isset ( $ data [ 'name' ] ) && empty ( $ data [ 'name' ] ) ) { $ errors [ 'name' ] = 'Keyword is required' ; } if ( ! isset ( $ data [ 'fields' ] ) || empty ( $ data [ 'fields' ] ) ) { $ errors [ 'fields' ] = 'Fields is required' ; } return self :: getOptionalErrors ( $ data , $ errors ) ; }
Returns Table Update Errors

@param *array $data
@param array  $errors

@return array
Returns Table Update Errors