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:

$runtime = \Notification::runtime();

To get the Runtime component:

$cache = \Notification::component( 'core_whitelabel' );

To get plugin version:

$version = \Notification::version();

To get plugin filesystem:

$fs= \Notification::fs();

Please note the Notification class lives in the global namespace.

Last updated