Пример #1
0
 /**
  * Load the template metadata.
  *
  * @param string $template, the Builder template
  *
  * @return array
  */
 protected function getTemplateMetadata($template)
 {
     if ($this->files->exists($path = $this->getBuilderPath("{$template}/builder.json"))) {
         return json_decode($this->files->get($path), true);
     }
     return [];
 }