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