public function normalize($supplier, $format = null, array $context = [])
    {
        $data = parent::normalize($supplier, $format, $context);

        if ($this->contextHasGroup('Summary', $context)) {
            $data = array_replace($data, [
                'description' => $supplier->getDescription(),
            ]);
        }

        return $data;
    }
public function normalize($supplier, $format = null, array $context = [])
    {
        $data = parent::normalize($supplier, $format, $context);

        if ($this->contextHasGroup('Summary', $context)) {
            $data = array_replace($data, [
                'description' => $supplier->getDescription(),
            ]);
        }

        return $data;
    }
@inheritdoc

@param SupplierInterface $supplier