You are here

public function YamlEncoder::decode in Content Synchronization 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Encoder/YamlEncoder.php \Drupal\content_sync\Encoder\YamlEncoder::decode()

File

src/Encoder/YamlEncoder.php, line 34

Class

YamlEncoder
Class YamlEncoder.

Namespace

Drupal\content_sync\Encoder

Code

public function decode($data, $format, array $context = array()) {
  return $this->yaml
    ->decode($data);
}