src/Sulu/Component/Content/Mapper/ContentMapper.php
private function getExtensionData(
        NodeInterface $node,
        ExtensionInterface $extension,
        $propertyName,
        $webspaceKey,
        $locale
    ) {
        // extension data: load ones
        if (!$this->extensionDataCache->contains($extension->getName())) {
            $this->extensionDataCache->save(
                $extension->getName(),
                $this->loadExtensionData(
                    $node,
                    $extension,
                    $webspaceKey,
                    $locale
                )
            );
        }

        // get extension data from cache
        $data = $this->extensionDataCache->fetch($extension->getName());

        // if property exists set it to target (with default value '')
        return isset($data[$propertyName]) ? $data[$propertyName] : null;
    }
private function getExtensionData(
        NodeInterface $node,
        ExtensionInterface $extension,
        $propertyName,
        $webspaceKey,
        $locale
    ) {
        // extension data: load ones
        if (!$this->extensionDataCache->contains($extension->getName())) {
            $this->extensionDataCache->save(
                $extension->getName(),
                $this->loadExtensionData(
                    $node,
                    $extension,
                    $webspaceKey,
                    $locale
                )
            );
        }

        // get extension data from cache
        $data = $this->extensionDataCache->fetch($extension->getName());

        // if property exists set it to target (with default value '')
        return isset($data[$propertyName]) ? $data[$propertyName] : null;
    }
private function getExtensionData ( NodeInterface $ node , ExtensionInterface $ extension , $ propertyName , $ webspaceKey , $ locale ) { // extension data: load ones if ( ! $ this -> extensionDataCache -> contains ( $ extension -> getName ( ) ) ) { $ this -> extensionDataCache -> save ( $ extension -> getName ( ) , $ this -> loadExtensionData ( $ node , $ extension , $ webspaceKey , $ locale ) ) ; } // get extension data from cache $ data = $ this -> extensionDataCache -> fetch ( $ extension -> getName ( ) ) ; // if property exists set it to target (with default value '') return isset ( $ data [ $ propertyName ] ) ? $ data [ $ propertyName ] : null ; }
Returns data for extension and property name.
Returns data for extension and property name .