public function YamlEncoder::encode in Content Synchronization 3.0.x
Same name and namespace in other branches
- 8.2 src/Encoder/YamlEncoder.php \Drupal\content_sync\Encoder\YamlEncoder::encode()
File
- src/
Encoder/ YamlEncoder.php, line 42
Class
- YamlEncoder
- Class YamlEncoder.
Namespace
Drupal\content_sync\EncoderCode
public function encode($data, $format, array $context = array()) {
return $this->yaml
->encode($data);
}