function GeneratedLink::count

Same name in other branches
  1. 9 core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::count()
  2. 8.9.x core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::count()
  3. 10 core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::count()

File

core/lib/Drupal/Core/GeneratedLink.php, line 68

Class

GeneratedLink
Used to return generated links, along with associated cacheability metadata.

Namespace

Drupal\Core

Code

public function count() : int {
    return mb_strlen($this->__toString());
}

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