src/Controller/AbstractController.php
protected function defineActivationHooks(): void {
		$backend = $this->getBackend();
		$pluginName = $this->getFilename();
		$handlers = ["activate", "deactivate", "uninstall"];
		foreach ($handlers as $handler) {
			
			// for each of our handlers, we hook an action handler to our
			// backend component.  the purpose of the BackendInterface is
			// to guarantee that we have three methods, one for each of
			// these hooks.
			
			$hook = $handler . "_" . $pluginName;
			$this->loader->addAction($hook, $backend, $handler);
		}
	}
protected function defineActivationHooks(): void {
		$backend = $this->getBackend();
		$pluginName = $this->getFilename();
		$handlers = ["activate", "deactivate", "uninstall"];
		foreach ($handlers as $handler) {
			
			// for each of our handlers, we hook an action handler to our
			// backend component.  the purpose of the BackendInterface is
			// to guarantee that we have three methods, one for each of
			// these hooks.
			
			$hook = $handler . "_" . $pluginName;
			$this->loader->addAction($hook, $backend, $handler);
		}
	}
protected function defineActivationHooks ( ) : void { $ backend = $ this -> getBackend ( ) ; $ pluginName = $ this -> getFilename ( ) ; $ handlers = [ "activate" , "deactivate" , "uninstall" ] ; foreach ( $ handlers as $ handler ) { // for each of our handlers, we hook an action handler to our // backend component.  the purpose of the BackendInterface is // to guarantee that we have three methods, one for each of // these hooks. $ hook = $ handler . "_" . $ pluginName ; $ this -> loader -> addAction ( $ hook , $ backend , $ handler ) ; } }
Defines hooks using the Backend object for the activate,
deactivate, and uninstall actions of this plugin.

@return void
Defines hooks using the Backend object for the activate deactivate and uninstall actions of this plugin .