private function computeElements(array $sourceElements, array $draftElements)
    {
        $elements = [];
        if ($this->getContent() instanceof ContentSet) {
            $elements = [
                'current' => $sourceElements,
                'draft'   => $draftElements,
            ];
        } else {
            foreach ($sourceElements as $key => $element) {
                if ($element !== $draftElements[$key]) {
                    $elements[$key] = [
                        'current' => $element,
                        'draft'   => $draftElements[$key],
                    ];
                }
            }
        }

        return $elements;
    }
private function computeElements(array $sourceElements, array $draftElements)
    {
        $elements = [];
        if ($this->getContent() instanceof ContentSet) {
            $elements = [
                'current' => $sourceElements,
                'draft'   => $draftElements,
            ];
        } else {
            foreach ($sourceElements as $key => $element) {
                if ($element !== $draftElements[$key]) {
                    $elements[$key] = [
                        'current' => $element,
                        'draft'   => $draftElements[$key],
                    ];
                }
            }
        }

        return $elements;
    }
private function computeElements ( array $ sourceElements , array $ draftElements ) { $ elements = [ ] ; if ( $ this -> getContent ( ) instanceof ContentSet ) { $ elements = [ 'current' => $ sourceElements , 'draft' => $ draftElements , ] ; } else { foreach ( $ sourceElements as $ key => $ element ) { if ( $ element !== $ draftElements [ $ key ] ) { $ elements [ $ key ] = [ 'current' => $ element , 'draft' => $ draftElements [ $ key ] , ] ; } } } return $ elements ; }
Computes and returns elements data.

@param array $sourceElements
@param array $draftElements

@return array
Computes and returns elements data .