comparison vendor/symfony/css-selector/XPath/Extension/PseudoClassExtension.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
29 /** 29 /**
30 * {@inheritdoc} 30 * {@inheritdoc}
31 */ 31 */
32 public function getPseudoClassTranslators() 32 public function getPseudoClassTranslators()
33 { 33 {
34 return array( 34 return [
35 'root' => array($this, 'translateRoot'), 35 'root' => [$this, 'translateRoot'],
36 'first-child' => array($this, 'translateFirstChild'), 36 'first-child' => [$this, 'translateFirstChild'],
37 'last-child' => array($this, 'translateLastChild'), 37 'last-child' => [$this, 'translateLastChild'],
38 'first-of-type' => array($this, 'translateFirstOfType'), 38 'first-of-type' => [$this, 'translateFirstOfType'],
39 'last-of-type' => array($this, 'translateLastOfType'), 39 'last-of-type' => [$this, 'translateLastOfType'],
40 'only-child' => array($this, 'translateOnlyChild'), 40 'only-child' => [$this, 'translateOnlyChild'],
41 'only-of-type' => array($this, 'translateOnlyOfType'), 41 'only-of-type' => [$this, 'translateOnlyOfType'],
42 'empty' => array($this, 'translateEmpty'), 42 'empty' => [$this, 'translateEmpty'],
43 ); 43 ];
44 } 44 }
45 45
46 /** 46 /**
47 * @return XPathExpr 47 * @return XPathExpr
48 */ 48 */