Browse Source

Switch the label and summary of contextReaction map_uri_predicate.

pull/729/head^2
Rosie Le Faive 6 years ago
parent
commit
34845d5a82
  1. 20
      islandora.iml
  2. 4
      src/Plugin/ContextReaction/MappingUriPredicateReaction.php

20
islandora.iml

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library name="PHP Runtime" type="php">
<CLASSES>
<root url="jar://$APPLICATION_PLUGINS_DIR$/php/lib/php.jar!/stubs/standard" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$APPLICATION_PLUGINS_DIR$/php/lib/php.jar!/stubs/standard" />
</SOURCES>
</library>
</orderEntry>
</component>
</module>

4
src/Plugin/ContextReaction/MappingUriPredicateReaction.php

@ -17,7 +17,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*
* @ContextReaction(
* id = "islandora_map_uri_predicate",
* label = @Translation("Map URI to predicate")
* label = @Translation("JSON-LD self-reference")
* )
*/
class MappingUriPredicateReaction extends NormalizerAlterReaction {
@ -69,7 +69,7 @@ class MappingUriPredicateReaction extends NormalizerAlterReaction {
* {@inheritdoc}
*/
public function summary() {
return $this->t('Map Drupal URI to configured predicate.');
return $this->t('When creating the JSON-LD for this Drupal entity, add a relationship to itself using this predicate.');
}
/**

Loading…
Cancel
Save