src/Page/Page.php
public function set(): PageInterface
    {
        $hook = $this->isNetwork() ? 'network_admin_menu' : 'admin_menu';

        // Action for page display.
        $this->action->add($hook, [$this, 'build']);
        // Action for page settings.
        $this->action->add('admin_init', [$this, 'configureSettings']);

        return $this;
    }
public function set(): PageInterface
    {
        $hook = $this->isNetwork() ? 'network_admin_menu' : 'admin_menu';

        // Action for page display.
        $this->action->add($hook, [$this, 'build']);
        // Action for page settings.
        $this->action->add('admin_init', [$this, 'configureSettings']);

        return $this;
    }
public function set ( ) : PageInterface { $ hook = $ this -> isNetwork ( ) ? 'network_admin_menu' : 'admin_menu' ; // Action for page display. $ this -> action -> add ( $ hook , [ $ this , 'build' ] ) ; // Action for page settings. $ this -> action -> add ( 'admin_init' , [ $ this , 'configureSettings' ] ) ; return $ this ; }
Set the page. Display it on the WordPress administration.

@return PageInterface
Set the page . Display it on the WordPress administration .