You are here

Deprecated in Service Container 7.2

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
ContainerBuilder::synchronize modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php function since version 2.7, will be removed in 3.0. 1 1
Definition::getFactoryClass modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php function since version 2.6, to be removed in 3.0.
Definition::getFactoryMethod modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php function since version 2.6, to be removed in 3.0.
Definition::getFactoryService modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php function since version 2.6, to be removed in 3.0.
Definition::isSynchronized modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php function since version 2.7, will be removed in 3.0.
Definition::setFactoryClass modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php function since version 2.6, to be removed in 3.0. 1 1
Definition::setFactoryMethod modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php function since version 2.6, to be removed in 3.0. 1 1
Definition::setFactoryService modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php function since version 2.6, to be removed in 3.0. 1 1
Definition::setSynchronized modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php function since version 2.7, will be removed in 3.0.
Drupal::getContainer lib/Drupal.php function This method is only useful for the testing environment. It should not be used otherwise. 4
PhpDumper::addExpressionLanguageProvider modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php function since version 2.6.2, to be removed in 3.0. Use \Symfony\Component\DependencyInjection\ContainerBuilder::addExpressionLanguageProvider instead.
PhpDumper::addServiceSynchronizer modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php function since version 2.7, will be removed in 3.0. 1
SafeMarkup lib/Drupal/Component/Utility/SafeMarkup.php class Will be removed before Drupal 9.0.0. Use the appropriate sanitization functions or the theme and render systems so that the output can can be themed, escaped, and altered properly. 1
SafeMarkup::checkPlain lib/Drupal/Component/Utility/SafeMarkup.php function Will be removed before Drupal 9.0.0. Rely on Twig's auto-escaping feature, or use the #plain_text key when constructing a render array that contains plain text in order to use the renderer's auto-escaping feature. If neither of these are possible, \Drupal\Component\Utility\Html::escape() can be used in places where explicit escaping is needed.
SafeMarkup::format lib/Drupal/Component/Utility/SafeMarkup.php function in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal\Component\Render\FormattableMarkup. 1
SafeMarkup::isSafe lib/Drupal/Component/Utility/SafeMarkup.php function in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Instead, you should just check if a variable is an instance of \Drupal\Component\Render\MarkupInterface.
SimpleXMLElement modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/SimpleXMLElement.php class since version 2.5, to be removed in 3.0. 1
Unescaper::ENCODING modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Unescaper.php constant since version 2.5, to be removed in 3.0
Yaml::parse modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Yaml.php function The ability to pass file names to the Yaml::parse method is deprecated since version 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead. 12

Other projects