Esempio n. 1
0
 /**
  * Config data to JSON by output
  *
  * @param ConfigInterface $configuration
  * @return string
  */
 public function toJson(ConfigInterface $configuration)
 {
     $result = $configuration->getData();
     $result['name'] = $configuration->getName();
     $result['parent_name'] = $configuration->getParentName();
     return json_encode($result);
 }
 /**
  * @inheritdoc
  */
 public function removeComponentsData(ConfigInterface $configuration)
 {
     unset($this->componentStorage[$configuration->getName()]);
 }
Esempio n. 3
0
 /**
  * Get parent name component instance
  *
  * @return string
  */
 public function getParentName()
 {
     return $this->config->getParentName();
 }