src/Sulu/Component/Content/Import/WebspaceImport.php
protected function setDocumentSettings(
        BasePageDocument $document,
        $format,
        $data,
        $overrideSettings
    ) {
        if ('true' !== $overrideSettings) {
            return;
        }

        foreach ($data as $key => $property) {
            $setter = 'set' . ucfirst($key);

            if (in_array($key, self::$excludedSettings) || !method_exists($document, $setter)) {
                continue;
            }

            $value = $this->getParser($format)->getPropertyData(
                $key,
                $data
            );

            $document->$setter($this->getSetterValue($key, $value));
        }
    }
protected function setDocumentSettings(
        BasePageDocument $document,
        $format,
        $data,
        $overrideSettings
    ) {
        if ('true' !== $overrideSettings) {
            return;
        }

        foreach ($data as $key => $property) {
            $setter = 'set' . ucfirst($key);

            if (in_array($key, self::$excludedSettings) || !method_exists($document, $setter)) {
                continue;
            }

            $value = $this->getParser($format)->getPropertyData(
                $key,
                $data
            );

            $document->$setter($this->getSetterValue($key, $value));
        }
    }
protected function setDocumentSettings ( BasePageDocument $ document , $ format , $ data , $ overrideSettings ) { if ( 'true' !== $ overrideSettings ) { return ; } foreach ( $ data as $ key => $ property ) { $ setter = 'set' . ucfirst ( $ key ) ; if ( in_array ( $ key , self :: $ excludedSettings ) || ! method_exists ( $ document , $ setter ) ) { continue ; } $ value = $ this -> getParser ( $ format ) -> getPropertyData ( $ key , $ data ) ; $ document -> $ setter ( $ this -> getSetterValue ( $ key , $ value ) ) ; } }
Set all Settings for the given documents and import them.
Import property -o must be set to true.

@param BasePageDocument $document
@param string $format
@param array $data
@param $overrideSettings

@throws DocumentManagerException
@throws FormatImporterNotFoundException
Set all Settings for the given documents and import them . Import property - o must be set to true .