plugin/path/Entity/Path/Path.php
public function getStructure()
    {
        $isPublished = $this->isPublished();
        if ($isPublished && !$this->modified) {
            // Rebuild the structure of the Path from generated data
            // This permits to merge modifications made on generated data into the Path
            $structure = json_encode($this); // See `jsonSerialize` to know how it's populated
        } else {
            // There are unpublished data so get the structure generated by the editor
            $structure = $this->structure;
        }

        return $structure;
    }
public function getStructure()
    {
        $isPublished = $this->isPublished();
        if ($isPublished && !$this->modified) {
            // Rebuild the structure of the Path from generated data
            // This permits to merge modifications made on generated data into the Path
            $structure = json_encode($this); // See `jsonSerialize` to know how it's populated
        } else {
            // There are unpublished data so get the structure generated by the editor
            $structure = $this->structure;
        }

        return $structure;
    }
public function getStructure ( ) { $ isPublished = $ this -> isPublished ( ) ; if ( $ isPublished && ! $ this -> modified ) { // Rebuild the structure of the Path from generated data // This permits to merge modifications made on generated data into the Path $ structure = json_encode ( $ this ) ; // See `jsonSerialize` to know how it's populated } else { // There are unpublished data so get the structure generated by the editor $ structure = $ this -> structure ; } return $ structure ; }
Get a JSON version of the Path.

@return string
Get a JSON version of the Path .