NamedPlugin
Opt-in for a plugin whose diagnostics/logging name can’t be a compile-time constant (e.g.
it’s computed from config, an environment value, or an instance the plugin was constructed with). Most plugins don’t need this — naming the plugin via Plugin’s name argument is enough. PluginManager prefers this interface’s NamedPlugin::name() over the attribute’s name when a plugin implements both.
Synopsis
Section titled “Synopsis”interface NamedPlugin extends PluginInterface
| Implements | PluginInterface |
| Source | Plugin/NamedPlugin.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
name(): string | A stable, human-readable identifier for diagnostics/logging. |
name()
Section titled “name()”abstract public function name(): string
A stable, human-readable identifier for diagnostics/logging.
Returns string
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
register() | PluginInterface | Contribute to the framework. |