| @@ 2795-2802 (lines=8) @@ | ||
| 2792 | * |
|
| 2793 | * @return string |
|
| 2794 | */ |
|
| 2795 | public function singular_name() |
|
| 2796 | { |
|
| 2797 | $base = in_array(static::class, [Page::class, self::class]); |
|
| 2798 | if ($base) { |
|
| 2799 | return $this->stat('base_singular_name'); |
|
| 2800 | } |
|
| 2801 | return parent::singular_name(); |
|
| 2802 | } |
|
| 2803 | ||
| 2804 | /** |
|
| 2805 | * Default plural name for page / sitetree |
|
| @@ 2809-2816 (lines=8) @@ | ||
| 2806 | * |
|
| 2807 | * @return string |
|
| 2808 | */ |
|
| 2809 | public function plural_name() |
|
| 2810 | { |
|
| 2811 | $base = in_array(static::class, [Page::class, self::class]); |
|
| 2812 | if ($base) { |
|
| 2813 | return $this->stat('base_plural_name'); |
|
| 2814 | } |
|
| 2815 | return parent::plural_name(); |
|
| 2816 | } |
|
| 2817 | ||
| 2818 | /** |
|
| 2819 | * Get description for this page type |
|