Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drupal / drupal-driver / src / Drupal / Driver / Fields / Drupal8 / LinkHandler.php
diff --git a/vendor/drupal/drupal-driver/src/Drupal/Driver/Fields/Drupal8/LinkHandler.php b/vendor/drupal/drupal-driver/src/Drupal/Driver/Fields/Drupal8/LinkHandler.php
deleted file mode 100644 (file)
index 34e540a..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-namespace Drupal\Driver\Fields\Drupal8;
-
-/**
- * Link field handler for Drupal 8.
- */
-class LinkHandler extends AbstractHandler {
-
-  /**
-   * {@inheritdoc}
-   */
-  public function expand($values) {
-    $return = array();
-    foreach ($values as $value) {
-      $return[] = array(
-        // 'options' is required to be an array, otherwise the utility class
-        // Drupal\Core\Utility\UnroutedUrlAssembler::assemble() will complain.
-        'options' => array(),
-        'title' => $value[0],
-        'uri' => $value[1],
-      );
-    }
-    return $return;
-  }
-
-}