Extensions/WordPress/Admin/AdminPage.php
public function add_page( $config )
    {
        foreach( $this->required_params() as $param )
        {
            if( !isset( $config[$param] ) )
            {
                throw new \RuntimeException( 'Missing required parameter "'.$param.'" for submenu' );
            }
        }
        $this->config['submenu-pages'][] = $config;
    }
public function add_page( $config )
    {
        foreach( $this->required_params() as $param )
        {
            if( !isset( $config[$param] ) )
            {
                throw new \RuntimeException( 'Missing required parameter "'.$param.'" for submenu' );
            }
        }
        $this->config['submenu-pages'][] = $config;
    }
public function add_page ( $ config ) { foreach ( $ this -> required_params ( ) as $ param ) { if ( ! isset ( $ config [ $ param ] ) ) { throw new \ RuntimeException ( 'Missing required parameter "' . $ param . '" for submenu' ) ; } } $ this -> config [ 'submenu-pages' ] [ ] = $ config ; }
Add a page to this menu.

If there is only one page set for this menu, no submenu will be created.
If there is more than one page set for this menu, a submenu will
automatically be created with all the pages of this menu.

Possible options are:
title:       (Required) Submenu title AND submenu page title tag.
capability:  (Required) The capability required for this menu to be displayed to the user.
content:     (Required) The function that displays the page content for the menu page.

@param mixed[] $config The page's configuration.
@throws \RuntimeException If one of the required options was not set.
Add a page to this menu .