X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fentityqueue%2Fsrc%2FEntityQueueHandlerManager.php;fp=web%2Fmodules%2Fcontrib%2Fentityqueue%2Fsrc%2FEntityQueueHandlerManager.php;h=93ed42a163bea8b19c77993019b6b93bd278cd79;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/entityqueue/src/EntityQueueHandlerManager.php b/web/modules/contrib/entityqueue/src/EntityQueueHandlerManager.php new file mode 100644 index 000000000..93ed42a16 --- /dev/null +++ b/web/modules/contrib/entityqueue/src/EntityQueueHandlerManager.php @@ -0,0 +1,47 @@ +setCacheBackend($cache_backend, 'entityqueuehandler'); + } + + /** + * Gets all handlers. + * + * @return array + * Returns all entityqueue handlers. + */ + public function getAllEntityQueueHandlers() { + $handlers = []; + foreach ($this->getDefinitions() as $plugin_id => $plugin_def) { + $handlers[$plugin_id] = $plugin_def['title']; + } + asort($handlers); + + return $handlers; + } + +}