WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath

Translator::getExtension() public WC 1.0

{} It's a method of the class: Translator{}

No Hooks.

Return

Extension\ExtensionInterface.

Usage

$Translator = new Translator();
$Translator->getExtension( $name );
$name(string) (required)
-

Code of Translator::getExtension() WC 5.4.1

<?php
public function getExtension($name)
{
    if (!isset($this->extensions[$name])) {
        throw new ExpressionErrorException(sprintf('Extension "%s" not registered.', $name));
    }

    return $this->extensions[$name];
}