Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / consolidation / output-formatters / src / StructuredData / ListDataFromKeys.php
index 299fcfafc6445df1c894d0e3a2bd8846c78d8a41..8cf571465b9556fcfffe5ea3e3603d567d016c32 100644 (file)
@@ -1,21 +1,9 @@
 <?php
 namespace Consolidation\OutputFormatters\StructuredData;
 
-use Consolidation\OutputFormatters\Options\FormatterOptions;
-
 /**
- * Represents aribtrary array data (structured or unstructured) where the
- * data to display in --list format comes from the array keys.
+ * @deprecated Use UnstructuredListData
  */
-class ListDataFromKeys extends \ArrayObject implements ListDataInterface
+class ListDataFromKeys extends AbstractListData
 {
-    public function __construct($data)
-    {
-        parent::__construct($data);
-    }
-
-    public function getListData(FormatterOptions $options)
-    {
-        return array_keys($this->getArrayCopy());
-    }
 }