| @@ 2765-2772 (lines=8) @@ | ||
| 2762 | * |
|
| 2763 | * @return string |
|
| 2764 | */ |
|
| 2765 | public function singular_name() |
|
| 2766 | { |
|
| 2767 | $base = in_array(static::class, [Page::class, self::class]); |
|
| 2768 | if ($base) { |
|
| 2769 | return $this->stat('base_singular_name'); |
|
| 2770 | } |
|
| 2771 | return parent::singular_name(); |
|
| 2772 | } |
|
| 2773 | ||
| 2774 | /** |
|
| 2775 | * Default plural name for page / sitetree |
|
| @@ 2779-2786 (lines=8) @@ | ||
| 2776 | * |
|
| 2777 | * @return string |
|
| 2778 | */ |
|
| 2779 | public function plural_name() |
|
| 2780 | { |
|
| 2781 | $base = in_array(static::class, [Page::class, self::class]); |
|
| 2782 | if ($base) { |
|
| 2783 | return $this->stat('base_plural_name'); |
|
| 2784 | } |
|
| 2785 | return parent::plural_name(); |
|
| 2786 | } |
|
| 2787 | ||
| 2788 | /** |
|
| 2789 | * Get description for this page type |
|