[core] plugins: Rename getNodePlugin... to getRegisteredNodePlugin...

This prevents ambiguities between `NodePlugin` objects that have been
registered (and are thus instantiable) and those that belong to `Plugin`
objects but have not been registered.
This commit is contained in:
Candice Bentéjac 2025-05-22 16:17:20 +02:00
parent c16b56c7e3
commit 98d90dae81
7 changed files with 17 additions and 17 deletions

View file

@ -262,14 +262,14 @@ class NodePluginManager(BaseObject):
if not self.getPlugin(plugin.name):
self._plugins[plugin.name] = plugin
def getNodePlugins(self) -> dict[str: NodePlugin]:
def getRegisteredNodePlugins(self) -> dict[str: NodePlugin]:
"""
Return a dictionary containing all the registered NodePlugins, with
{key, value} = {name, NodePlugin}.
"""
return self._nodePlugins
def getNodePlugin(self, name: str) -> NodePlugin:
def getRegisteredNodePlugin(self, name: str) -> NodePlugin:
"""
Return the NodePlugin object that has been registered under the name "name" if it exists.