From 3d94a6d9b74be03b58049dd24ff59145f24b36a1 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 9 Oct 2021 19:46:58 +0200 Subject: Splits into two separate Traits for Themes and Plugins --- src/PluginUsesWordPressScripts.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/PluginUsesWordPressScripts.php (limited to 'src/PluginUsesWordPressScripts.php') diff --git a/src/PluginUsesWordPressScripts.php b/src/PluginUsesWordPressScripts.php new file mode 100644 index 0000000..3a60828 --- /dev/null +++ b/src/PluginUsesWordPressScripts.php @@ -0,0 +1,35 @@ +pluginDir) . "{$this->buildDir}/$asset"; + } + + /** + * @param string $asset + * + * @return array + */ + public function assetsMeta(string $asset): array + { + return include plugin_dir_path($this->pluginDir) . "{$this->buildDir}/$asset.asset.php"; + } +} -- cgit v1.2.3