diff core/lib/Drupal/Component/Gettext/PoMemoryWriter.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children af1871eacc83
line wrap: on
line diff
--- a/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/lib/Drupal/Component/Gettext/PoMemoryWriter.php	Thu Feb 28 13:21:36 2019 +0000
@@ -12,13 +12,13 @@
    *
    * @var array
    */
-  private $_items;
+  protected $items;
 
   /**
    * Constructor, initialize empty items.
    */
   public function __construct() {
-    $this->_items = [];
+    $this->items = [];
   }
 
   /**
@@ -30,7 +30,7 @@
       $item->setTranslation(implode(LOCALE_PLURAL_DELIMITER, $item->getTranslation()));
     }
     $context = $item->getContext();
-    $this->_items[$context != NULL ? $context : ''][$item->getSource()] = $item->getTranslation();
+    $this->items[$context != NULL ? $context : ''][$item->getSource()] = $item->getTranslation();
   }
 
   /**
@@ -49,7 +49,7 @@
    * @return array PoItem
    */
   public function getData() {
-    return $this->_items;
+    return $this->items;
   }
 
   /**