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