src/Sulu/Bundle/DocumentManagerBundle/Bridge/DocumentInspector.php
public function getStructureMetadata(StructureBehavior $document)
    {
        try {
            return $this->structureFactory->getStructureMetadata(
                $this->getMetadata($document)->getAlias(),
                $document->getStructureType()
            );
        } catch (StructureTypeNotFoundException $exception) {
            return;
        }
    }
public function getStructureMetadata(StructureBehavior $document)
    {
        try {
            return $this->structureFactory->getStructureMetadata(
                $this->getMetadata($document)->getAlias(),
                $document->getStructureType()
            );
        } catch (StructureTypeNotFoundException $exception) {
            return;
        }
    }
public function getStructureMetadata ( StructureBehavior $ document ) { try { return $ this -> structureFactory -> getStructureMetadata ( $ this -> getMetadata ( $ document ) -> getAlias ( ) , $ document -> getStructureType ( ) ) ; } catch ( StructureTypeNotFoundException $ exception ) { return ; } }
Return the structure for the given StructureBehavior implementing document.

@param StructureBehavior $document

@return StructureMetadata
Return the structure for the given StructureBehavior implementing document .