From 925f1520c98a4b47aca90718d8f4f15ec16faae4 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Thu, 3 Sep 2020 16:25:26 -0300 Subject: [PATCH] Improve wording of jsonld type source field. --- src/Plugin/ContextReaction/JsonldTypeAlterReaction.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Plugin/ContextReaction/JsonldTypeAlterReaction.php b/src/Plugin/ContextReaction/JsonldTypeAlterReaction.php index 191dd5e5..8588b82a 100644 --- a/src/Plugin/ContextReaction/JsonldTypeAlterReaction.php +++ b/src/Plugin/ContextReaction/JsonldTypeAlterReaction.php @@ -89,9 +89,13 @@ class JsonldTypeAlterReaction extends NormalizerAlterReaction { $config = $this->getConfiguration(); $form['source_field'] = [ '#type' => 'select', - '#title' => $this->t('Type field'), + '#title' => $this->t('Field containing RDF type information'), '#options' => $options, - '#description' => $this->t("In JSON-LD representations, allow the rdf:type to vary based on the value of a field.
The field selected here must be an entity reference field and its allowable values must have field_external_uri. The value of the URL component of field_external_uri will be used as rdf:type for entities selected by this context."), + '#description' => $this->t("In JSON-LD representations, allow the rdf:type to vary + based on the value of a field.
Note: The field selected + here must be an Entity reference field and its allowable targets must have + field_external_uri. The value of the URL component of field_external_uri in the + referenced entity will be used as rdf:type for entities selected by this context."), '#default_value' => isset($config['source_field']) ? $config['source_field'] : '', ]; return $form;