original_string: public function shouldParseElementOnMove(Element $element): bool
      {
          $fieldLayout = $element->getFieldLayout();
  
          if ($fieldLayout) {
              foreach ($fieldLayout->getFields() as $field) {
                  if ($field && \get_class($field) === 'aelvan\preparsefield\fields\PreparseFieldType') {
                      /** @var PreparseFieldType $field */
                      $parseOnMove = $field->parseOnMove;
  
                      if ($parseOnMove) {
                          return true;
                      }
                  }
              }
          }
  
          return false;
      }
code: public function shouldParseElementOnMove(Element $element): bool
      {
          $fieldLayout = $element->getFieldLayout();
  
          if ($fieldLayout) {
              foreach ($fieldLayout->getFields() as $field) {
                  if ($field && \get_class($field) === 'aelvan\preparsefield\fields\PreparseFieldType') {
                      /** @var PreparseFieldType $field */
                      $parseOnMove = $field->parseOnMove;
  
                      if ($parseOnMove) {
                          return true;
                      }
                  }
              }
          }
  
          return false;
      }
code_tokens: public function shouldParseElementOnMove ( Element $ element ) : bool { $ fieldLayout = $ element -> getFieldLayout ( ) ; if ( $ fieldLayout ) { foreach ( $ fieldLayout -> getFields ( ) as $ field ) { if ( $ field && \ get_class ( $ field ) === 'aelvan\preparsefield\fields\PreparseFieldType' ) { /** @var PreparseFieldType $field */ $ parseOnMove = $ field -> parseOnMove ; if ( $ parseOnMove ) { return true ; } } } } return false ; }
docstring: Checks to see if an element has a prepase field that should be saved on move
  
  @param $element
  
  @return bool
docstring_tokens: Checks to see if an element has a prepase field that should be saved on move