Browse Source

coding style

pull/808/head
Seth Shaw 4 years ago committed by GitHub
parent
commit
69326432ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Plugin/Condition/NodeReferencedByNode.php

6
src/Plugin/Condition/NodeReferencedByNode.php

@ -11,7 +11,7 @@ use Drupal\field\Entity\FieldStorageConfig;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Condition to detect if is a node is referenced by another node using the configured field.
* Condition for a node referenced by another node using the configured field.
*
* @Condition(
* id = "node_referenced_by_node",
@ -140,10 +140,10 @@ class NodeReferencedByNode extends ConditionPluginBase implements ContainerFacto
*/
public function summary() {
if (!empty($this->configuration['negate'])) {
return $this->t('The node is not referenced in another node\'s field `@field`.', ['@field' => $this->configuration['reference_field']]);
return $this->t("The node is not referenced in another node's field `@field`.", ['@field' => $this->configuration['reference_field']]);
}
else {
return $this->t('The node is referenced in another node\'s field `@field`.', ['@field' => $this->configuration['reference_field']]);
return $this->t("The node is referenced in another node's field `@field`.", ['@field' => $this->configuration['reference_field']]);
}
}

Loading…
Cancel
Save