use Drupal\Component\Render\FormattableMarkup;
use Drupal\Component\Utility\ToStringTrait;
-use Drupal\Component\Utility\Unicode;
/**
* Provides translatable markup class.
* The length of the string.
*/
public function count() {
- return Unicode::strlen($this->render());
+ return mb_strlen($this->render());
}
}