public function TranslatableMarkup::count in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php \Drupal\Core\StringTranslation\TranslatableMarkup::count()
- 9 core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php \Drupal\Core\StringTranslation\TranslatableMarkup::count()
File
- core/
lib/ Drupal/ Core/ StringTranslation/ TranslatableMarkup.php, line 228
Class
- TranslatableMarkup
- Provides translatable markup class.
Namespace
Drupal\Core\StringTranslationCode
public function count() {
return mb_strlen($this
->render());
}