src/Sulu/Bundle/PageBundle/Search/EventSubscriber/BlameTimestampSubscriber.php
private function getFieldValue($document, $fieldName)
    {
        if (false === $document->hasField($fieldName)) {
            return;
        }

        return $document->getField($fieldName)->getValue();
    }
private function getFieldValue($document, $fieldName)
    {
        if (false === $document->hasField($fieldName)) {
            return;
        }

        return $document->getField($fieldName)->getValue();
    }
private function getFieldValue ( $ document , $ fieldName ) { if ( false === $ document -> hasField ( $ fieldName ) ) { return ; } return $ document -> getField ( $ fieldName ) -> getValue ( ) ; }
Return the named field from the document or return null.

@param mixed $document
@param mixed $fieldName
Return the named field from the document or return null .