protected function getErrorCountsPerTabPane()
    {
        $normalizedErrorKeys = array_keys($this->getNormalizedFormFieldErrors());

        if ( ! count($normalizedErrorKeys)) {
            return [];
        }

        $errorCount = [];

        foreach ($this->getModelInformation()->form->layout() as $key => $node) {

            if ( ! ($node instanceof ModelFormTabDataInterface)) {
                continue;
            }

            $fieldKeys = $this->getFieldKeysForTab($key);

            $errorCount[ $key ] = count(array_intersect($normalizedErrorKeys, $fieldKeys));
        }

        return $errorCount;
    }
protected function getErrorCountsPerTabPane()
    {
        $normalizedErrorKeys = array_keys($this->getNormalizedFormFieldErrors());

        if ( ! count($normalizedErrorKeys)) {
            return [];
        }

        $errorCount = [];

        foreach ($this->getModelInformation()->form->layout() as $key => $node) {

            if ( ! ($node instanceof ModelFormTabDataInterface)) {
                continue;
            }

            $fieldKeys = $this->getFieldKeysForTab($key);

            $errorCount[ $key ] = count(array_intersect($normalizedErrorKeys, $fieldKeys));
        }

        return $errorCount;
    }
protected function getErrorCountsPerTabPane ( ) { $ normalizedErrorKeys = array_keys ( $ this -> getNormalizedFormFieldErrors ( ) ) ; if ( ! count ( $ normalizedErrorKeys ) ) { return [ ] ; } $ errorCount = [ ] ; foreach ( $ this -> getModelInformation ( ) -> form -> layout ( ) as $ key => $ node ) { if ( ! ( $ node instanceof ModelFormTabDataInterface ) ) { continue ; } $ fieldKeys = $ this -> getFieldKeysForTab ( $ key ) ; $ errorCount [ $ key ] = count ( array_intersect ( $ normalizedErrorKeys , $ fieldKeys ) ) ; } return $ errorCount ; }
Returns the error count keyed by tab pane keys.

@return array
Returns the error count keyed by tab pane keys .