\MatthiasWeb\UtilsPluginReceiver

This trait is used via Base trait and allows to consume the prefix filled but the UtilsProvider in your plugin. That allows you to dynamically get plugin data within your composer package.

Summary

Methods
Properties
Constants
getPluginConstant()
getPluginClassInstance()
getCore()
getPluginConstantPrefix()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getPluginConstant()

getPluginConstant(string  $name = null): null|mixed|string

Get a value from a defined constant with no prefix.

The prefix is plugin relevant.

Parameters

string $name

Returns

null|mixed|string

getPluginClassInstance()

getPluginClassInstance(string  $name): mixed

Get a new instance of a plugin class from string (supports namespaces, too).

Parameters

string $name

Returns

mixed

getCore()

getCore(): mixed

Get the functions instance.

Returns

mixed

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the plugins' constant prefix. Will be overwritten by the UtilsProvider class.

Returns

string