From 06214b908462d0c1341e8795da5ccb731ff29127 Mon Sep 17 00:00:00 2001 From: Grzegorz Rola <grola@seostudio.pl> Date: Mon, 13 Aug 2018 13:54:07 +0200 Subject: [PATCH] added method to interface: get_hookable_instance_by_class_name --- src/Plugin/HookableCollection.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Plugin/HookableCollection.php b/src/Plugin/HookableCollection.php index 74bc337..def6ec9 100644 --- a/src/Plugin/HookableCollection.php +++ b/src/Plugin/HookableCollection.php @@ -11,5 +11,14 @@ interface HookableCollection extends Hookable { */ public function add_hookable( Hookable $hookable_object ); + /** + * Get hookable instance. + * + * @param string $class_name Class name. + * + * @return false|Hookable + */ + public function get_hookable_instance_by_class_name( $class_name ); + } -- GitLab