public function init()
    {

		parent::init();
		self::$plugin = $this;

		Craft::$app->getView()->registerTwigExtension(new EnvironmentLabelTwigExtension());

		Event::on(
			View::class,
			View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE,
			function (Event $event) {
				EnvironmentLabel::$plugin->label->doItBaby();
			}
		);

    }
public function init()
    {

		parent::init();
		self::$plugin = $this;

		Craft::$app->getView()->registerTwigExtension(new EnvironmentLabelTwigExtension());

		Event::on(
			View::class,
			View::EVENT_BEFORE_RENDER_PAGE_TEMPLATE,
			function (Event $event) {
				EnvironmentLabel::$plugin->label->doItBaby();
			}
		);

    }
public function init ( ) { parent :: init ( ) ; self :: $ plugin = $ this ; Craft :: $ app -> getView ( ) -> registerTwigExtension ( new EnvironmentLabelTwigExtension ( ) ) ; Event :: on ( View :: class , View :: EVENT_BEFORE_RENDER_PAGE_TEMPLATE , function ( Event $ event ) { EnvironmentLabel :: $ plugin -> label -> doItBaby ( ) ; } ) ; }
Initializes the plugin, sets its static self-reference, registers the Twig extension,
and adds the environment label as appropriate.
Initializes the plugin sets its static self - reference registers the Twig extension and adds the environment label as appropriate .