comparison core/modules/locale/src/StringBase.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
1 <?php 1 <?php
2 2
3 namespace Drupal\locale; 3 namespace Drupal\locale;
4
5 use Drupal\Component\Gettext\PoItem;
4 6
5 /** 7 /**
6 * Defines the locale string base class. 8 * Defines the locale string base class.
7 * 9 *
8 * This is the base class to be used for locale string objects and contains 10 * This is the base class to be used for locale string objects and contains
93 95
94 /** 96 /**
95 * {@inheritdoc} 97 * {@inheritdoc}
96 */ 98 */
97 public function getPlurals() { 99 public function getPlurals() {
98 return explode(LOCALE_PLURAL_DELIMITER, $this->getString()); 100 return explode(PoItem::DELIMITER, $this->getString());
99 } 101 }
100 102
101 /** 103 /**
102 * {@inheritdoc} 104 * {@inheritdoc}
103 */ 105 */
104 public function setPlurals($plurals) { 106 public function setPlurals($plurals) {
105 $this->setString(implode(LOCALE_PLURAL_DELIMITER, $plurals)); 107 $this->setString(implode(PoItem::DELIMITER, $plurals));
106 return $this; 108 return $this;
107 } 109 }
108 110
109 /** 111 /**
110 * {@inheritdoc} 112 * {@inheritdoc}