You are here

public function AttributeMatchingExtension::getAttributeMatchingTranslators in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php \Symfony\Component\CssSelector\XPath\Extension\AttributeMatchingExtension::getAttributeMatchingTranslators()

Returns attribute operation translators.

Return value

callable[]

Overrides AbstractExtension::getAttributeMatchingTranslators

File

vendor/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php, line 30

Class

AttributeMatchingExtension
XPath expression translator attribute extension.

Namespace

Symfony\Component\CssSelector\XPath\Extension

Code

public function getAttributeMatchingTranslators() {
  return array(
    'exists' => array(
      $this,
      'translateExists',
    ),
    '=' => array(
      $this,
      'translateEquals',
    ),
    '~=' => array(
      $this,
      'translateIncludes',
    ),
    '|=' => array(
      $this,
      'translateDashMatch',
    ),
    '^=' => array(
      $this,
      'translatePrefixMatch',
    ),
    '$=' => array(
      $this,
      'translateSuffixMatch',
    ),
    '*=' => array(
      $this,
      'translateSubstringMatch',
    ),
    '!=' => array(
      $this,
      'translateDifferent',
    ),
  );
}