mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
508238a7b2
Previously would output the language code as the title 'En'. This double checks whether the file is at the root of the entity and if so, it'll use the entity name.
20 lines
337 B
PHP
20 lines
337 B
PHP
<?php
|
|
|
|
/**
|
|
* A specific documentation folder within a {@link DocumentationEntity}.
|
|
*
|
|
* Maps to a folder on the file system.
|
|
*
|
|
* @package docsviewer
|
|
* @subpackage model
|
|
*/
|
|
class DocumentationFolder extends DocumentationPage {
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getTitle() {
|
|
return $this->getTitleFromFolder();
|
|
}
|
|
|
|
} |