Skip to content
Snippets Groups Projects
Commit 4317f4bd authored by Owen Bush's avatar Owen Bush
Browse files

Removed replace method, that makes no sense

parent 884ca1ce
No related branches found
No related tags found
No related merge requests found
......@@ -80,16 +80,12 @@ abstract class FieldInheritancePluginBase extends PluginBase implements FieldInh
$text = $instance->{$field}->value . ' ' . $series->{$field}->value;
break;
case 'replace':
$text = $instance->{$field}->value;
break;
case 'append':
$text = $series->{$field}->value . ' ' . $instance->{$field}->value;
break;
default:
throw new \InvalidArgumentException("The definition's 'method' key must be one of: inherit, prepend, replace or append.");
throw new \InvalidArgumentException("The definition's 'method' key must be one of: inherit, prepend, or append.");
}
return $text;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment