plugin/link/Serializer/ShortcutSerializer.php
public function serialize(Shortcut $shortcut, array $options = [])
    {
        return [
            'target' => $this->resourceNodeSerializer->serialize($shortcut->getTarget(), array_merge($options, [Options::SERIALIZE_MINIMAL])),
        ];
    }
public function serialize(Shortcut $shortcut, array $options = [])
    {
        return [
            'target' => $this->resourceNodeSerializer->serialize($shortcut->getTarget(), array_merge($options, [Options::SERIALIZE_MINIMAL])),
        ];
    }
public function serialize ( Shortcut $ shortcut , array $ options = [ ] ) { return [ 'target' => $ this -> resourceNodeSerializer -> serialize ( $ shortcut -> getTarget ( ) , array_merge ( $ options , [ Options :: SERIALIZE_MINIMAL ] ) ) , ] ; }
Serializes a Shortcut resource entity for the JSON api.

@param Shortcut $shortcut
@param array    $options

@return array
Serializes a Shortcut resource entity for the JSON api .