src/SuperSort.php
public function init()
    {

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

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

    }
public function init()
    {

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

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

    }
public function init ( ) { parent :: init ( ) ; self :: $ plugin = $ this ; Craft :: $ app -> getView ( ) -> registerTwigExtension ( new SuperSortTwigExtension ( ) ) ; }
Initializes the plugin, sets its static self-reference, and registers the Twig extension.
Initializes the plugin sets its static self - reference and registers the Twig extension .