You are here

function ContentExport::parserYAMLObject in Content Export YAML 8

1 call to ContentExport::parserYAMLObject()
ContentExport::exportBase in src/ContentExport.php

File

src/ContentExport.php, line 331

Class

ContentExport
Created by PhpStorm. User: USER Date: 11/13/18 Time: 2:04 PM

Namespace

Drupal\content_export_yaml

Code

function parserYAMLObject($entity) {
  $yaml = new Dumper(2);
  return $yaml
    ->dump($entity, PHP_INT_MAX, 0, SymfonyYaml::DUMP_OBJECT);
}