mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-09-21 08:25:56 +02:00
Add DocumentationEntity::toMap() for assert compability
This commit is contained in:
parent
aed63c9df5
commit
e9132c446f
@ -260,4 +260,17 @@ class DocumentationEntity extends ViewableData {
|
|||||||
public function compare(DocumentationEntity $other) {
|
public function compare(DocumentationEntity $other) {
|
||||||
return version_compare($this->getVersion(), $other->getVersion());
|
return version_compare($this->getVersion(), $other->getVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function toMap() {
|
||||||
|
return array(
|
||||||
|
'Key' => $this->key,
|
||||||
|
'Path' => $this->getPath(),
|
||||||
|
'Version' => $this->getVersion(),
|
||||||
|
'IsStable' => $this->getIsStable(),
|
||||||
|
'Language' => $this->getLanguage()
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user