@@ 164-176 (lines=13) @@ | ||
161 | /** |
|
162 | * @return array |
|
163 | */ |
|
164 | public function getAssetFiles() |
|
165 | { |
|
166 | if (! $this->asset_files) { |
|
167 | if (empty($this->manifest[ AssetManifest::KEY_FILES ])) { |
|
168 | if (WP_DEBUG) { |
|
169 | throw new AssetManifestException(AssetManifest::KEY_FILES, $this->manifest_path); |
|
170 | } |
|
171 | return []; |
|
172 | } |
|
173 | $this->asset_files = $this->manifest[ AssetManifest::KEY_FILES ]; |
|
174 | } |
|
175 | return $this->asset_files; |
|
176 | } |
|
177 | ||
178 | ||
179 | /** |
|
@@ 182-194 (lines=13) @@ | ||
179 | /** |
|
180 | * @return array |
|
181 | */ |
|
182 | public function getEntryPoints() |
|
183 | { |
|
184 | if (! $this->entry_points) { |
|
185 | if (empty($this->manifest[ AssetManifest::KEY_ENTRY_POINTS ])) { |
|
186 | if (WP_DEBUG) { |
|
187 | throw new AssetManifestException(AssetManifest::KEY_ENTRY_POINTS, $this->manifest_path); |
|
188 | } |
|
189 | return []; |
|
190 | } |
|
191 | $this->entry_points = array_keys($this->manifest[ AssetManifest::KEY_ENTRY_POINTS ]); |
|
192 | } |
|
193 | return $this->entry_points; |
|
194 | } |
|
195 | ||
196 | ||
197 | /** |