You are here

public function ConfigurationHandler::export in Configuration Management 7.3

Generates the JSON representation of this configuration.

File

src/Handlers/ConfigurationHandler.php, line 68

Class

ConfigurationHandler

Namespace

Configuration\Handlers

Code

public function export(Configuration $configuration, $format = 'json') {
  switch ($format) {
    case 'json':
      return $this
        ->exportToJson($configuration);
      break;
    default:
      return '';
      break;
  }
}