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/ThemeUsesWordPressScripts.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/ThemeUsesWordPressScripts.php (limited to 'src/ThemeUsesWordPressScripts.php') diff --git a/src/ThemeUsesWordPressScripts.php b/src/ThemeUsesWordPressScripts.php new file mode 100644 index 0000000..21cc501 --- /dev/null +++ b/src/ThemeUsesWordPressScripts.php @@ -0,0 +1,28 @@ +buildDir}/$asset"; + } + + /** + * @param string $asset + * + * @return array + */ + public function assetsMeta(string $asset): array + { + return include get_stylesheet_directory() . "/{$this->buildDir}/$asset.asset.php"; + } +} -- cgit v1.2.3