original_string: protected function validateData()
      {
          $field = 'data';
  
          if ($this->isExcluded($field)) {
              return null;
          }
  
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          if (!is_array($value)) {
              $this->setErrorInvalid($field, $this->translation->text('Data'));
              return false;
          }
  
          return true;
      }
code: protected function validateData()
      {
          $field = 'data';
  
          if ($this->isExcluded($field)) {
              return null;
          }
  
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          if (!is_array($value)) {
              $this->setErrorInvalid($field, $this->translation->text('Data'));
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateData ( ) { $ field = 'data' ; if ( $ this -> isExcluded ( $ field ) ) { return null ; } $ value = $ this -> getSubmitted ( $ field ) ; if ( ! isset ( $ value ) ) { $ this -> unsetSubmitted ( $ field ) ; return null ; } if ( ! is_array ( $ value ) ) { $ this -> setErrorInvalid ( $ field , $ this -> translation -> text ( 'Data' ) ) ; return false ; } return true ; }
docstring: Validates "data" field
  @return bool|null
docstring_tokens: Validates data field