public function DrupalClient::setSerializer in Facebook Instant Articles 3.x
Same name and namespace in other branches
- 8.2 src/DrupalClient.php \Drupal\fb_instant_articles\DrupalClient::setSerializer()
Set the serializer.
Parameters
\Symfony\Component\Serializer\Normalizer\NormalizerInterface $serializer: Serializer service. Note that we are type hiting to the NormalizerInterface, b/c that is the functionality we actually want to use from the Serializer.
File
- src/
DrupalClient.php, line 60
Class
- DrupalClient
- Encapsulate Drupal-specific logic for FBIA Client.
Namespace
Drupal\fb_instant_articlesCode
public function setSerializer(NormalizerInterface $serializer) {
$this->serializer = $serializer;
}