original_string: 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();
  			}
  		);
  
      }
code: 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();
  			}
  		);
  
      }
code_tokens: 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 ( ) ; } ) ; }
docstring: Initializes the plugin, sets its static self-reference, registers the Twig extension,
  and adds the environment label as appropriate.
docstring_tokens: Initializes the plugin sets its static self - reference registers the Twig extension and adds the environment label as appropriate .