X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fdrupal-driver%2Fsrc%2FDrupal%2FDriver%2FFields%2FDrupal7%2FTaxonomyTermReferenceHandler.php;fp=vendor%2Fdrupal%2Fdrupal-driver%2Fsrc%2FDrupal%2FDriver%2FFields%2FDrupal7%2FTaxonomyTermReferenceHandler.php;h=0000000000000000000000000000000000000000;hp=2acd3027e12aa27fb2cdd09944e8ede60070fb25;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drupal/drupal-driver/src/Drupal/Driver/Fields/Drupal7/TaxonomyTermReferenceHandler.php b/vendor/drupal/drupal-driver/src/Drupal/Driver/Fields/Drupal7/TaxonomyTermReferenceHandler.php deleted file mode 100644 index 2acd3027e..000000000 --- a/vendor/drupal/drupal-driver/src/Drupal/Driver/Fields/Drupal7/TaxonomyTermReferenceHandler.php +++ /dev/null @@ -1,38 +0,0 @@ -getVocab()); - if (!$terms) { - throw new \Exception(sprintf("No term '%s' exists.", $name)); - } - $return[$this->language][] = array('tid' => array_shift($terms)->tid); - } - return $return; - } - - /** - * Attempt to determine the vocabulary for which the field is configured. - * - * @return mixed - * Returns a string containing the vocabulary in which the term must be - * found or NULL if unable to determine. - */ - protected function getVocab() { - if (!empty($this->field_info['settings']['allowed_values'][0]['vocabulary'])) { - return $this->field_info['settings']['allowed_values'][0]['vocabulary']; - } - } - -}