mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
add image name to image data model
This commit is contained in:
parent
e90b441f43
commit
b1f2cabf03
|
@ -8,6 +8,7 @@ class NodeImage extends Node {
|
|||
$node = [];
|
||||
$imageName = $this->getInfoboxData( $this->getXmlAttribute($this->xmlNode, self::DATA_SRC_ATTR_NAME ) );
|
||||
$node['value'] = $this->resolveImageUrl( $imageName );
|
||||
$node['image'] = $imageName;
|
||||
$node['alt'] = $this->getValueWithDefault( $this->xmlNode->{self::ALT_TAG_NAME} );
|
||||
return $node;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue