Skip to content

Commit

Permalink
#1475 Check derivative_term instead of source_term (#766)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Hunt <[email protected]>
  • Loading branch information
kayakr and Jonathan Hunt authored Mar 27, 2020
1 parent e9bea0d commit dd47b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/Action/AbstractGenerateDerivative.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected function generateData(EntityInterface $entity) {
// Find the term for the derivative and use it to set the destination url
// in the data array.
$derivative_term = $this->utils->getTermForUri($this->configuration['derivative_term_uri']);
if (!$source_term) {
if (!$derivative_term) {
throw new \RuntimeException("Could not locate derivative term with uri" . $this->configuration['derivative_term_uri'], 500);
}

Expand Down

0 comments on commit dd47b16

Please sign in to comment.