protected function ConfigurationHandler::importFromJsonAsArray in Configuration Management 7.3
1 call to ConfigurationHandler::importFromJsonAsArray()
- ConfigurationHandler::importFromJson in src/
Handlers/ ConfigurationHandler.php
1 method overrides ConfigurationHandler::importFromJsonAsArray()
File
- src/
Handlers/ ConfigurationHandler.php, line 150
Class
Namespace
Configuration\HandlersCode
protected function importFromJsonAsArray($file_content) {
// Load the view as an array, it will be converted to proper views objects later.
$array = json_decode($file_content, TRUE);
$object = new \stdClass();
$object->identifier = $array['identifier'];
$object->notes = $array['notes'];
$object->tags = $array['tags'];
$object->dependencies = $array['dependencies'];
$object->parts = $array['parts'];
$object->modules = $array['modules'];
$object->data = $array['data'];
unset($array);
return $object;
}