Same name and namespace in other branches
- 8.9.x core/core.api.php \utility
- 9 core/core.api.php \utility
Overview of utility classes and functions for developers.
Drupal provides developers with a variety of utility functions that make it easier and more efficient to perform tasks that are either really common, tedious, or difficult. Utility functions help to reduce code duplication and should be used in place of one-off code whenever possible.
See also
sanitization
validation
File
- core/
core.api.php, line 1573 - Documentation landing page and topics, plus core library hooks.
Classes
Name | Location | Description |
---|---|---|
Xss |
core/ |
Provides helper to filter for cross-site scripting. |
Variable |
core/ |
Provides helpers for dealing with variables. |
UserAgent |
core/ |
Provides user agent related utility functions. |
Unicode |
core/ |
Provides Unicode-related conversions and operations. |
Timer |
core/ |
Provides helpers to use timers throughout a request. |
Tags |
core/ |
Defines a class that can explode and implode tags. |
SortArray |
core/ |
Provides generic array sorting helper methods. |
Settings |
core/ |
Read only settings that are initialized with the class. |
OpCodeCache |
core/ |
Provides helpers to handle PHP opcode caches. |
Number |
core/ |
Provides helper methods for manipulating numbers. |
NestedArray |
core/ |
Provides helpers to perform operations on nested arrays and array keys of variable depth. |
Image |
core/ |
Provides helpers to operate on images. |
Html |
core/ |
Provides DOMDocument helpers for parsing and serializing HTML strings. |
FrontMatter |
core/ |
Component for parsing front matter from a source. |
DiffArray |
core/ |
Provides helpers to perform diffs on multi dimensional arrays. |
Crypt |
core/ |
Utility class for cryptographically-secure string handling routines. |