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;
    }
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;
    }
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 ; }
Checks to see if an element has a prepase field that should be saved on move

@param $element

@return bool
Checks to see if an element has a prepase field that should be saved on move