original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns the error count keyed by tab pane keys.
  
  @return array
docstring_tokens: Returns the error count keyed by tab pane keys .