src/Metabox/Resources/Transformers/MetaboxTransformer.php
public function transform(MetaboxInterface $metabox)
    {
        return [
            'id' => $metabox->getId(),
            'context' => $metabox->getContext(),
            'l10n' => $metabox->getTranslations(),
            'locale' => $metabox->getLocale(),
            'priority' => $metabox->getPriority(),
            'screen' => $this->getScreen($metabox->getScreen()),
            'title' => $metabox->getTitle(),
        ];
    }
public function transform(MetaboxInterface $metabox)
    {
        return [
            'id' => $metabox->getId(),
            'context' => $metabox->getContext(),
            'l10n' => $metabox->getTranslations(),
            'locale' => $metabox->getLocale(),
            'priority' => $metabox->getPriority(),
            'screen' => $this->getScreen($metabox->getScreen()),
            'title' => $metabox->getTitle(),
        ];
    }
public function transform ( MetaboxInterface $ metabox ) { return [ 'id' => $ metabox -> getId ( ) , 'context' => $ metabox -> getContext ( ) , 'l10n' => $ metabox -> getTranslations ( ) , 'locale' => $ metabox -> getLocale ( ) , 'priority' => $ metabox -> getPriority ( ) , 'screen' => $ this -> getScreen ( $ metabox -> getScreen ( ) ) , 'title' => $ metabox -> getTitle ( ) , ] ; }
Transform the metabox to a resource.

@param MetaboxInterface $metabox

@return array
Transform the metabox to a resource .