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

Issue #2003322 by toddtomlinson, borisson_, jibran: Rename Views method...

Issue #2003322 by toddtomlinson, borisson_, jibran: Rename Views method render_trim_text() to renderTrimText().
parent 3ed3a458
No related branches found
No related tags found
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
......@@ -1240,7 +1240,7 @@ public function renderText($alter) {
$suffix = '';
if (!empty($alter['trim']) && !empty($alter['max_length'])) {
$length = strlen($value);
$value = $this->render_trim_text($alter, $value);
$value = $this->renderTrimText($alter, $value);
if ($this->options['alter']['more_link'] && strlen($value) < $length) {
$tokens = $this->getRenderTokens($alter);
$more_link_text = $this->options['alter']['more_link_text'] ? $this->options['alter']['more_link_text'] : t('more');
......@@ -1290,7 +1290,7 @@ function render_altered($alter, $tokens) {
/**
* Trim the field down to the specified length.
*/
function render_trim_text($alter, $value) {
public function renderTrimText($alter, $value) {
if (!empty($alter['strip_tags'])) {
// NOTE: It's possible that some external fields might override the
// element type.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment