public function serialize(Plugin $plugin, array $options = [])
    {
        return [
            'id' => $plugin->getId(),
            'name' => $plugin->getShortName(),
            'vendor' => $plugin->getVendorName(),
            'bundle' => $plugin->getBundleName(),
        ];
    }
public function serialize(Plugin $plugin, array $options = [])
    {
        return [
            'id' => $plugin->getId(),
            'name' => $plugin->getShortName(),
            'vendor' => $plugin->getVendorName(),
            'bundle' => $plugin->getBundleName(),
        ];
    }
public function serialize ( Plugin $ plugin , array $ options = [ ] ) { return [ 'id' => $ plugin -> getId ( ) , 'name' => $ plugin -> getShortName ( ) , 'vendor' => $ plugin -> getVendorName ( ) , 'bundle' => $ plugin -> getBundleName ( ) , ] ; }
Serializes a Plugin entity.

@param Plugin $plugin
@param array  $options

@return array
Serializes a Plugin entity .