Reconfigures default welcome pages with ones provided externally
@param welcomePages
496221
public void configureWelcomeFiles(List<String> welcomePages) {
		this.welcomePages = welcomePages;
		((ResourceHandler) handler).setWelcomeFiles();
		((ResourceHandler) handler).addWelcomeFiles(welcomePages.toArray(new String[welcomePages.size()]));
	}
881527
protected void updateBreadCrumb(Map<String, String> breadCrumbEntries) {

        LinkedHashMap<String, String> entries = new LinkedHashMap<String, String>();
        I_CmsWorkplaceAppConfiguration launchpadConfig = OpenCms.getWorkplaceAppManager().getAppConfiguration(
            CmsAppHierarchyConfiguration.APP_ID);
        if (launchpadConfig.getVisibility(A_CmsUI.getCmsObject()).isActive()) {
            entries.put(CmsAppHierarchyConfiguration.APP_ID, launchpadConfig.getName(UI.getCurrent().getLocale()));
        }
        if ((breadCrumbEntries != null) && !breadCrumbEntries.isEmpty()) {
            entries.putAll(breadCrumbEntries);
        } else {
            entries.put(
                "",
                OpenCms.getWorkplaceAppManager().getAppConfiguration(m_uiContext.getAppId()).getName(
                    UI.getCurrent().getLocale()));
        }
        m_breadCrumb.setEntries(entries);
    }
139034
private function changeHostFromUri()
    {
        $host = $this->uri->getHost();

        if ($host === '') {
            return;
        }

        if (($port = $this->uri->getPort()) !== null) {
            $host .= ':' . $port;
        }

        $this->headers['Host'] = [$host];

        $this->rearrangeHostHeaderKey();
    }
134631
public void configureDefaults() throws Exception
    {
        //cannot configure if the context is already started
        if (_context.isStarted())
        {
            if (log.isDebugEnabled()){log.debug("Cannot configure webapp after it is started");};
            return;
        }
        
        getWebApplicationContext().setWelcomeFiles(null);
        
        String defaultsDescriptor=getWebApplicationContext().getDefaultsDescriptor();
        if(defaultsDescriptor!=null&&defaultsDescriptor.length()>0)
        {
            Resource dftResource=Resource.newSystemResource(defaultsDescriptor);
            if(dftResource==null)
                dftResource=Resource.newResource(defaultsDescriptor);
            XmlParser.Node defaultConfig=xmlParser.parse(dftResource.getURL());
            initialize(defaultConfig);
        }
    }
198102
protected function configureAndRegisterClient(): void
    {
        $this->app->singleton(static::$abstract, function () {
            $basePath = base_path();
            $userConfig = $this->app['config'][static::$abstract];

            // We do not want this setting to hit our main client because it's Laravel specific
            unset(
                $userConfig['breadcrumbs'],
                // this is kept for backwards compatibilty and can be dropped in a breaking release
                $userConfig['breadcrumbs.sql_bindings']
            );

            $options = \array_merge(
                [
                    'environment' => $this->app->environment(),
                    'prefixes' => [$basePath],
                    'project_root' => $basePath,
                    'in_app_exclude' => [$basePath . '/vendor'],
                    'integrations' => [new Integration],
                ],
                $userConfig
            );

            $clientBuilder = ClientBuilder::create($options);
            $clientBuilder->setSdkIdentifier(Version::SDK_IDENTIFIER);
            $clientBuilder->setSdkVersion(Version::SDK_VERSION);

            Hub::setCurrent(new Hub($clientBuilder->getClient()));

            return Hub::getCurrent();
        });
    }
543156
@Override
    public void addPages() {
        super.addPages();
        mainPage = new ExportWizardPage("Bug Counts Export", TITLE, DESCRIPTION, "icons/export_bugs.png");
        addPage(mainPage);
        setWindowTitle(mainPage.getName());
    }
828720
function ConfigureWebPageElements(n) {
        RED.nodes.createNode(this, n);

        this.usecount = 0;

        this.name = n.name;
        this.expression = n.expression;
        this.selector = n.selector;
        this.page = n.page;
        this.markers = n.markers;
        this.framePath = n.framePath;

        let node = this;
        // node.log(n);
        this.register = function() {
            node.usecount += 1;
        };

        this.deregister = function() {
            node.usecount -= 1;
            if (node.usecount == 0) {
            }
        };
    }
70784
private function addRemovePages()
    {
        $this->debug->groupCollapsed(__METHOD__);
        $pages = $this->persist->get('pages');
        $iCur = $this->persist->get('i');
        $currentPage = &$pages[ $iCur ];
        $pagesAdd = array();
        $pagesNext = array();
        $pagesEnd = array();
        /*
        currentPage[addPages] is a list of currentPage index/keys
        step1:  determine what pageNames these correspond to
        */
        $currentAddPagesNames = array();
        foreach ($currentPage['addPages'] as $i) {
            $currentAddPagesNames[] = $pages[ $i ]['name'];
        }
        $isRevisit = !empty($currentPage['addPages']);
        foreach ($this->status['additionalPages'] as $field) {
            $pageName = $field->attribs['value'];
            $pagesAdd[] = $pageName;
            // insert default = next
            if ($isRevisit && \in_array($pageName, $currentAddPagesNames)) {
                $this->debug->warn('already inserted', $pageName);
                continue;
            }
            if ($field->insert === null || $field->insert == 'next') {
                $pagesNext[] = $pageName;
            } else {
                $pagesEnd[] = $pageName;
            }
        }
        $pagesRem = \array_diff($currentAddPagesNames, $pagesAdd);
        $this->debug->log('pagesRem', '['.\implode(', ', $pagesRem).']');
        $this->debug->log('pagesNext', '['.\implode(', ', $pagesNext).']');
        $this->debug->log('pagesEnd', '['.\implode(', ', $pagesEnd).']');
        if ($pagesRem) {
            $this->pagesRemove($pagesRem);
        }
        if ($pagesNext) {
            $this->pagesAddNext($pagesNext);
        }
        if ($pagesEnd) {
            $this->pagesAddEnd($pagesEnd);
        }
        $this->debug->groupEnd();
        return;
    }
1012463
private void addMetaPageInternal(final MetaHelpPage page) {
    log.debug("Adding meta-page: {}", page);
    metaPages.put(page.getName(), page);
    events.publish(new MetaHelpPageAddedEvent(page));
  }
1043915
public function newPage()
    {
        if ($this->lastpicpage > $this->getPage()) {
            $this->setPage($this->lastpicpage);
        }
        $this->AddPage();
    }
555593
public function requireDefaultRecords() {

		parent::requireDefaultRecords();
		$stage = Versioned::get_stage() ?: 'Stage';
		Versioned::set_stage('Stage');

		// Determine whether pages should be created.

		if(!self::config()->create_default_pages) {
			return;
		}

		// This is required to support multiple sites.

		if(ClassInfo::exists(Multisites::class)) {
			foreach(Site::get() as $site) {

				// The problem is that class name mapping happens after this, but we need it right now to query pages.

				if(!SiteTree::get()->filter(array(
					'ClassName' => array(
						ExtensibleSearchPage::class,
						'ExtensibleSearchPage'
					),
					'SiteID' => $site->ID
				))->first()) {

					// Instantiate an extensible search page.

					$page = ExtensibleSearchPage::create();
					$page->ParentID = $site->ID;
					$page->Title = 'Search Page';
					$page->write();
					DB::alteration_message("\"{$site->Title}\" Extensible Search Page", 'created');
				}
			}
		}
		else {

			// The problem is that class name mapping happens after this, but we need it right now to query pages.

			if(!SiteTree::get()->filter('ClassName', array(
				ExtensibleSearchPage::class,
				'ExtensibleSearchPage'
			))->first()) {

				// Instantiate an extensible search page.

				$page = ExtensibleSearchPage::create();
				$page->Title = 'Search Page';
				$page->write();
				DB::alteration_message('"Default" Extensible Search Page', 'created');
			}
		}
		Versioned::set_stage($stage);
	}
171251
public void setPage(int page) {
        if(page < 0)
            throw new IllegalArgumentException(Bundle.getErrorString("PagerModel_IllegalPage"));

        /* todo: need to check that the new 'current' page is in range given the first/last boundaries */
        _currentRow = new Integer(page * getPageSize());
    }
1097793
public void addExtraCapabilities(DesiredCapabilities extraCapabilities) {
        if (extraCapabilities != null && browser.getName() != BrowserName.NONE) {
            desiredCapabilities = desiredCapabilities.merge(extraCapabilities);
        }
    }
575240
function updateAvailablePages(pages) {
        var i, page;
        for (i = 0; i < pages.length; ++i) {
            page = pages[i];
            viewerAPI.fire('realtimeupdate', { page: page });
            scope.broadcast('pageavailable', { page: page });
        }
    }
841452
public void setServerLaunchConfigurations(java.util.Collection<ServerLaunchConfiguration> serverLaunchConfigurations) {
        if (serverLaunchConfigurations == null) {
            this.serverLaunchConfigurations = null;
            return;
        }

        this.serverLaunchConfigurations = new java.util.ArrayList<ServerLaunchConfiguration>(serverLaunchConfigurations);
    }
413818
private function setup_pages() {

		$args                 = array(
			'capability' => 'manage_options',
			'icon'       => null,
			'position'   => null,
		);
		$this->struct['args'] = array_merge( $args, $this->struct );

		if ( ! isset( $this->struct['parent'] ) ) {
			add_action( 'admin_menu', array( $this, 'add_settings_page' ), 9 );
		} else {
			add_action( 'admin_menu', array( $this, 'add_sub_page' ), 9 );
		}

	}
386740
protected function setupDefaults()
    {
        $defaults = (isset($this->config['defaults'])) ?
            $this->config['defaults'] :
            [];

        foreach ($defaults as $key => $value) {
            if ($key == 'images') {
                if (empty($this->images)) {
                    $this->images = $value;
                }
            } elseif ($key == 'url' && $value === null) {
                $this->setUrl(app('url')->current());
            } elseif (! empty($value) && ! array_key_exists($key, $this->properties)) {
                $this->addProperty($key, $value);
            }
        }
    }