Jake Vanderwerf
2026-05-03 9bbeea742424837fb58207d88e10dbca0b2cae04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace JVBase\managers\SEO\render\Traits\_Properties;
 
use JVBase\managers\SEO\render\Thing\Place\Place;
 
if (!defined('ABSPATH')) {
    exit;
}
trait foundingLocationTrait {
    /**
     * @var Place The place where the Organization was founded.
     */
    protected Place $foundingLocation;
 
    public function getFoundingLocation():?Place
    {
        return $this->foundingLocation??null;
    }
    public function setFoundingLocation(Place $foundingLocation):void
    {
        $this->foundingLocation = $foundingLocation;
    }
 
    public function getFoundingLocationFieldConfig():array
    {
        return [
            'type'      => 'group',
            'label'     => 'Founding Location',
            'fields'    => [
                'name'  => [
                    'type'  => 'text',
                    'label' => 'City Name'
                ],
                'sameAs'    => [
                    'type'  => 'url',
                    'label' => 'Same as',
                    'hint'  => 'Wikipedia page of neighbourhood/city/province/country'
                ]
            ]
        ];
    }
}