You are here

public function Translator::getExtension in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/XPath/Translator.php \Symfony\Component\CssSelector\XPath\Translator::getExtension()

Parameters

string $name:

Return value

Extension\ExtensionInterface

Throws

ExpressionErrorException

File

vendor/symfony/css-selector/XPath/Translator.php, line 172

Class

Translator
XPath expression translator interface.

Namespace

Symfony\Component\CssSelector\XPath

Code

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