Runtime
The plugin initializes itself on action init with priority 5 (see the loading chain) so after this hook you can access the whole Runtime object with a simple wrapper class.
To get the Runtime object:
1
$runtime = \Notification::runtime();
Copied!
To get the Runtime component:
1
$cache = \Notification::component( 'core_whitelabel' );
Copied!
To get plugin version:
1
$version = \Notification::version();
Copied!
To get plugin filesystem:
1
$fs= \Notification::fs();
Copied!
Please note the Notification class lives in the global namespace.
Last modified 4d ago
Copy link