public function aroundGetElementByPathParts(\Closure $proceed, array $pathParts)
    {
        /** @var Section $result */
        $result = $proceed($pathParts);

        if ($this->isLoaded == true || false) {
            return $result;
        }

        if (($result instanceof Section) == false) {
            return $result;
        }

        if (isset($pathParts[0]) == false || $pathParts[0] != 'system') {
            return $result;
        }

        $this->isLoaded = true;
        $data = $result->getData();

        if (isset($data['children']['full_page_cache']['children']['fastly_edge_modules']['children']) == false) {
            return $result;
        }

        $original = $data['children']['full_page_cache']['children']['fastly_edge_modules']['children'];
        $data['children']['full_page_cache']['children']['fastly_edge_modules']['children'] = array_merge(
            $original,
            $this->loadModlyData()
        );

        $result->setData(
            $data,
            $this->scopeDefiner->getScope()
        );

        return $result;
    }
public function aroundGetElementByPathParts(\Closure $proceed, array $pathParts)
    {
        
        $result = $proceed($pathParts);

        if ($this->isLoaded == true || false) {
            return $result;
        }

        if (($result instanceof Section) == false) {
            return $result;
        }

        if (isset($pathParts[0]) == false || $pathParts[0] != 'system') {
            return $result;
        }

        $this->isLoaded = true;
        $data = $result->getData();

        if (isset($data['children']['full_page_cache']['children']['fastly_edge_modules']['children']) == false) {
            return $result;
        }

        $original = $data['children']['full_page_cache']['children']['fastly_edge_modules']['children'];
        $data['children']['full_page_cache']['children']['fastly_edge_modules']['children'] = array_merge(
            $original,
            $this->loadModlyData()
        );

        $result->setData(
            $data,
            $this->scopeDefiner->getScope()
        );

        return $result;
    }
public function aroundGetElementByPathParts ( \ Closure $ proceed , array $ pathParts ) { /** @var Section $result */ $ result = $ proceed ( $ pathParts ) ; if ( $ this -> isLoaded == true || false ) { return $ result ; } if ( ( $ result instanceof Section ) == false ) { return $ result ; } if ( isset ( $ pathParts [ 0 ] ) == false || $ pathParts [ 0 ] != 'system' ) { return $ result ; } $ this -> isLoaded = true ; $ data = $ result -> getData ( ) ; if ( isset ( $ data [ 'children' ] [ 'full_page_cache' ] [ 'children' ] [ 'fastly_edge_modules' ] [ 'children' ] ) == false ) { return $ result ; } $ original = $ data [ 'children' ] [ 'full_page_cache' ] [ 'children' ] [ 'fastly_edge_modules' ] [ 'children' ] ; $ data [ 'children' ] [ 'full_page_cache' ] [ 'children' ] [ 'fastly_edge_modules' ] [ 'children' ] = array_merge ( $ original , $ this -> loadModlyData ( ) ) ; $ result -> setData ( $ data , $ this -> scopeDefiner -> getScope ( ) ) ; return $ result ; }
Injects modlyies to configuration

@param \Closure $proceed
@param array $pathParts
@return ElementInterface|null

@SuppressWarnings(PHPMD.UnusedFormalParameter)
Injects modlyies to configuration