public function FormattableMarkup::count in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Render/FormattableMarkup.php \Drupal\Component\Render\FormattableMarkup::count()
Returns the string length.
Return value
int The length of the string.
1 method overrides FormattableMarkup::count()
- TranslatableMarkup::count in core/
lib/ Drupal/ Core/ StringTranslation/ TranslatableMarkup.php - Returns the string length.
File
- core/
lib/ Drupal/ Component/ Render/ FormattableMarkup.php, line 108 - Contains \Drupal\Component\Render\FormattableMarkup.
Class
- FormattableMarkup
- Formats a string for HTML display by replacing variable placeholders.
Namespace
Drupal\Component\RenderCode
public function count() {
return Unicode::strlen($this->string);
}