Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Core/Entity/Entity.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Entity/Entity.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/lib/Drupal/Core/Entity/Entity.php Thu Feb 28 13:21:36 2019 +0000 @@ -5,7 +5,6 @@ use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\RefinableCacheableDependencyTrait; use Drupal\Core\DependencyInjection\DependencySerializationTrait; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Config\Entity\Exception\ConfigEntityIdLengthException; use Drupal\Core\Entity\Exception\UndefinedLinkTemplateException; use Drupal\Core\Language\Language; @@ -431,7 +430,7 @@ // Check if this is an entity bundle. if ($this->getEntityType()->getBundleOf()) { // Throw an exception if the bundle ID is longer than 32 characters. - if (Unicode::strlen($this->id()) > EntityTypeInterface::BUNDLE_MAX_LENGTH) { + if (mb_strlen($this->id()) > EntityTypeInterface::BUNDLE_MAX_LENGTH) { throw new ConfigEntityIdLengthException("Attempt to create a bundle with an ID longer than " . EntityTypeInterface::BUNDLE_MAX_LENGTH . " characters: $this->id()."); } }