self::LANG_PREFIX . 'name', 'description' => self::LANG_PREFIX . 'description', ]; } public function defineProperties(): array { return [ 'path' => [ 'title' => self::LANG_PREFIX . 'properties.path.title', 'description' => self::LANG_PREFIX . 'properties.path.description', 'validationPattern' => '^[^/].*/manifest.json', 'validationMessage' => self::LANG_PREFIX . 'properties.path.validationMessage', 'placeholder' => 'assets/build/manifest.json', 'default' => 'assets/build/manifest.json', 'showExternalParam' => false, 'required' => true, ] ]; } /** * @return void * @throws \Wpstudio\AssetsManifest\Classes\AssetsManifestException */ public function init(): void { app()->instance(Manifest::class, $this); $this->prepareVars(); } /** * @return void * @throws \Wpstudio\AssetsManifest\Classes\AssetsManifestException */ private function prepareVars(): void { $this->manifestReader = new ManifestReader(Theme::getActiveTheme()->getPath() . '/' . $this->property('path')); } public function getManifestReader(): ManifestReader { return $this->manifestReader; } }