concrete/src/Localization/Localization.php
public function pushActiveContext($newContext)
    {
        if ($this->activeContext !== null) {
            $this->activeContextQueue[] = $this->activeContext;
        }
        $this->setActiveContext($newContext);
    }
public function pushActiveContext($newContext)
    {
        if ($this->activeContext !== null) {
            $this->activeContextQueue[] = $this->activeContext;
        }
        $this->setActiveContext($newContext);
    }
public function pushActiveContext ( $ newContext ) { if ( $ this -> activeContext !== null ) { $ this -> activeContextQueue [ ] = $ this -> activeContext ; } $ this -> setActiveContext ( $ newContext ) ; }
Change the active translation context, but remember the previous one.
Useful when temporarily setting the translation context to something else than the original.

@param string $newContext The new translation context to activate (default contexts are defined by the Localization::CONTEXT_... constants).

@see Localization::popActiveContext()

@example
```php
$loc = \Localization::getInstance();
// Let's assume the current context is 'original_context'

$loc->pushActiveContext('new_context');

// Do what you want in context 'new_context'

$loc->popActiveContext();
// Now the context is 'original_context'
```
Change the active translation context but remember the previous one . Useful when temporarily setting the translation context to something else than the original .