Skip to content
Snippets Groups Projects
Commit 16c5a966 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2361845 by rpayanm: Remove drupal_substr.

parent 5c9096af
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -163,24 +163,3 @@ function mime_header_encode($string) {
function mime_header_decode($header) {
return Unicode::mimeHeaderDecode($header);
}
/**
* Cuts off a piece of a string based on character indices and counts.
*
* @param $text
* The input string.
* @param $start
* The position at which to start reading.
* @param $length
* The number of characters to read.
*
* @return string
* The shortened string.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.0.
* Use \Drupal\Component\Utility\Unicode::substr().
* @ingroup php_wrappers
*/
function drupal_substr($text, $start, $length = NULL) {
return Unicode::substr($text, $start, $length);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment