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