public function getMetadataAction(Page $page)
    {
        $metadata = null !== $page->getMetaData() ? $page->getMetaData()->jsonSerialize() : array();
        if (empty($metadata)) {
            $metadata = $this->application->getContainer()->get('nestednode.metadata.resolver')->resolve($page);
        }

        return $this->createJsonResponse($metadata);
    }
public function getMetadataAction(Page $page)
    {
        $metadata = null !== $page->getMetaData() ? $page->getMetaData()->jsonSerialize() : array();
        if (empty($metadata)) {
            $metadata = $this->application->getContainer()->get('nestednode.metadata.resolver')->resolve($page);
        }

        return $this->createJsonResponse($metadata);
    }
public function getMetadataAction ( Page $ page ) { $ metadata = null !== $ page -> getMetaData ( ) ? $ page -> getMetaData ( ) -> jsonSerialize ( ) : array ( ) ; if ( empty ( $ metadata ) ) { $ metadata = $ this -> application -> getContainer ( ) -> get ( 'nestednode.metadata.resolver' ) -> resolve ( $ page ) ; } return $ this -> createJsonResponse ( $ metadata ) ; }
Get page's metadatas.

@param Page $page the page we want to get its metadatas

@return \Symfony\Component\HttpFoundation\Response

@Rest\ParamConverter(name="page", class="BackBee\NestedNode\Page")
Get page s metadatas .