You are here

public function Configuration::toObject in Configuration Management 7.3

File

src/Configuration.php, line 197

Class

Configuration
A generic configuration of the site.

Namespace

Configuration

Code

public function toObject() {
  $object = new \stdClass();
  $object->identifier = $this->identifier;
  $object->notes = $this->notes;
  $object->tags = $this->tags;
  $object->dependencies = $this->dependencies
    ->keys();
  $object->parts = $this->parts
    ->keys();
  $object->modules = $this->modules
    ->keys();
  $object->data = $this->data;
  return $object;
}