public function TranslatableMarkup::count in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php \Drupal\Core\StringTranslation\TranslatableMarkup::count()
Returns the string length.
Return value
int The length of the string.
Overrides FormattableMarkup::count
File
- core/
lib/ Drupal/ Core/ StringTranslation/ TranslatableMarkup.php, line 241 - Contains \Drupal\Core\StringTranslation\TranslatableMarkup.
Class
- TranslatableMarkup
- Provides translatable markup class.
Namespace
Drupal\Core\StringTranslationCode
public function count() {
return Unicode::strlen($this
->render());
}