From fca4e244aaa50f874d25e28dde955d5ad8c2360a Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Thu, 3 Sep 2020 20:57:03 -0300 Subject: [PATCH] Actually add documentation. --- src/Plugin/ContextReaction/JsonldTypeAlterReaction.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Plugin/ContextReaction/JsonldTypeAlterReaction.php b/src/Plugin/ContextReaction/JsonldTypeAlterReaction.php index 8588b82a..0314e4cd 100644 --- a/src/Plugin/ContextReaction/JsonldTypeAlterReaction.php +++ b/src/Plugin/ContextReaction/JsonldTypeAlterReaction.php @@ -91,11 +91,11 @@ class JsonldTypeAlterReaction extends NormalizerAlterReaction { '#type' => 'select', '#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.
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."), + '#description' => $this->t("Use a field to determine the rdf:type.

+ In JSON-LD representations, the @type attribute (shorthand for rdf:type) will + be populated from the value of this field, rather than the default for the bundle + as configured in the bundle's RDF mapping. If this field is an entity reference + field, the value of the referenced entity's `field_external_uri` will be used."), '#default_value' => isset($config['source_field']) ? $config['source_field'] : '', ]; return $form;