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