function ViewsConfigUpdater::processDefaultArgumentSkipUrlUpdate

Processes arguments and removes the default_argument_skip_url setting.

Parameters

array $handler: A display handler.

string $handler_type: The handler type.

Return value

bool Whether the handler was updated.

2 calls to ViewsConfigUpdater::processDefaultArgumentSkipUrlUpdate()
ViewsConfigUpdater::needsDefaultArgumentSkipUrlUpdate in core/modules/views/src/ViewsConfigUpdater.php
Checks for each view if default_argument_skip_url needs to be removed.
ViewsConfigUpdater::updateAll in core/modules/views/src/ViewsConfigUpdater.php
Performs all required updates.

File

core/modules/views/src/ViewsConfigUpdater.php, line 492

Class

ViewsConfigUpdater
Provides a BC layer for modules providing old configurations.

Namespace

Drupal\views

Code

public function processDefaultArgumentSkipUrlUpdate(array &$handler, string $handler_type) : bool {
    if ($handler_type === 'argument' && isset($handler['default_argument_skip_url'])) {
        unset($handler['default_argument_skip_url']);
        return TRUE;
    }
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.