Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jibran on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.2.x
Description:
\Symfony\Component\CssSelector\CssSelectorConverter
is deprecated as of Symfony 2.8 and it is removed in Symfony 3.0. \Symfony\Component\CssSelector\CssSelectorConverter
class can be used instead.
Before
use Symfony\Component\CssSelector\CssSelector;
CssSelector::toXPath($selector)
After
use Symfony\Component\CssSelector\CssSelectorConverter;
(new CssSelectorConverter())->toXPath($selector);
Note: \Symfony\Component\CssSelector\CssSelector
is part of Drupal 8 till #2712647: Update Symfony components to ~3.2 is fixed.
Impacts:
Module developers