inNamespace( NS_GADGET_DEFINITION ); } /** * @return string */ protected function getContentClass() { return GadgetDefinitionContent::class; } public function makeEmptyContent() { $class = $this->getContentClass(); return new $class( FormatJson::encode( $this->getDefaultMetadata(), "\t" ) ); } public function getDefaultMetadata() { return [ 'settings' => [ 'rights' => [], 'default' => false, 'hidden' => false, 'skins' => [], 'category' => '' ], 'module' => [ 'scripts' => [], 'styles' => [], 'peers' => [], 'dependencies' => [], 'messages' => [], 'type' => '', ], ]; } }