support both alt and alt_text

This commit is contained in:
Andy Miller
2018-03-01 15:13:42 -06:00
parent 5b291f8f54
commit b0ad83ebf7

View File

@@ -288,6 +288,8 @@ class Medium extends Data implements RenderableInterface
$attributes['alt'] = $alt;
} elseif (!empty($this->items['alt'])) {
$attributes['alt'] = $this->items['alt'];
} elseif (!empty($this->items['alt_text'])) {
$attributes['alt'] = $this->items['alt_text'];
}
}