namespace Drupal\Component\Utility

Same name in other branches
  1. 9 Drupal\Component\Utility
  2. 8.9.x Drupal\Component\Utility
  3. 11.x Drupal\Component\Utility
Object name File name Summary
ArgumentsResolver core/lib/Drupal/Component/Utility/ArgumentsResolver.php Resolves the arguments to pass to a callable.
ArgumentsResolverInterface core/lib/Drupal/Component/Utility/ArgumentsResolverInterface.php Resolves the arguments to pass to a callable.
Bytes core/lib/Drupal/Component/Utility/Bytes.php Provides helper methods for byte conversions.
Color core/lib/Drupal/Component/Utility/Color.php Performs color conversions.
Crypt core/lib/Drupal/Component/Utility/Crypt.php Utility class for cryptographically-secure string handling routines.
DeprecatedArray core/lib/Drupal/Component/Utility/DeprecatedArray.php An array that triggers a deprecation warning when accessed.
DeprecationHelper core/lib/Drupal/Component/Utility/DeprecationHelper.php Provides a helper method for handling deprecated code paths in projects.
DiffArray core/lib/Drupal/Component/Utility/DiffArray.php Provides helpers to perform diffs on multi dimensional arrays.
EmailValidator core/lib/Drupal/Component/Utility/EmailValidator.php Validates email addresses.
EmailValidatorInterface core/lib/Drupal/Component/Utility/EmailValidatorInterface.php Validates email addresses.
Environment core/lib/Drupal/Component/Utility/Environment.php Provides PHP environment helper methods.
Html core/lib/Drupal/Component/Utility/Html.php Provides DOMDocument helpers for parsing and serializing HTML strings.
HtmlSerializerRules core/lib/Drupal/Component/Utility/HtmlSerializerRules.php Drupal-specific HTML5 serializer rules.
Image core/lib/Drupal/Component/Utility/Image.php Provides helpers to operate on images.
NestedArray core/lib/Drupal/Component/Utility/NestedArray.php Provides helpers to perform operations on nested arrays and array keys of variable depth.
Number core/lib/Drupal/Component/Utility/Number.php Provides helper methods for manipulating numbers.
OpCodeCache core/lib/Drupal/Component/Utility/OpCodeCache.php Provides helpers to handle PHP opcode caches.
Random core/lib/Drupal/Component/Utility/Random.php Defines a utility class for creating random data.
Rectangle core/lib/Drupal/Component/Utility/Rectangle.php Rectangle rotation algebra class.
Reflection core/lib/Drupal/Component/Utility/Reflection.php Provides helper methods for reflection.
SortArray core/lib/Drupal/Component/Utility/SortArray.php Provides generic array sorting helper methods.
Tags core/lib/Drupal/Component/Utility/Tags.php Defines a class that can explode and implode tags.
Timer core/lib/Drupal/Component/Utility/Timer.php Provides helpers to use timers throughout a request.
ToStringTrait core/lib/Drupal/Component/Utility/ToStringTrait.php Wraps __toString in a trait to avoid some fatal errors.
Unicode core/lib/Drupal/Component/Utility/Unicode.php Provides Unicode-related conversions and operations.
UrlHelper core/lib/Drupal/Component/Utility/UrlHelper.php Helper class URL based methods.
UserAgent core/lib/Drupal/Component/Utility/UserAgent.php Provides user agent related utility functions.
Variable core/lib/Drupal/Component/Utility/Variable.php Provides helpers for dealing with variables.
Xss core/lib/Drupal/Component/Utility/Xss.php Provides helper to filter for cross-site scripting.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.