1 | <?php |
||
11 | class NamespaceFieldKey extends RecursiveTransform |
||
12 | { |
||
13 | protected $keys = ['key', 'field', 'collapsed']; |
||
14 | |||
15 | /** |
||
16 | * @param \StoutLogic\AcfBuilder\NamedBuilder $builder |
||
17 | */ |
||
18 | public function __construct(\StoutLogic\AcfBuilder\NamedBuilder $builder) |
||
22 | |||
23 | /** |
||
24 | * @return \StoutLogic\AcfBuilder\NamedBuilder |
||
25 | */ |
||
26 | public function getBuilder() |
||
30 | |||
31 | /** |
||
32 | * @param string $value Key |
||
33 | * @return string Namedspaced key |
||
34 | */ |
||
35 | public function transformValue($value) |
||
47 | |||
48 | public function shouldTransformValue($key, $config) |
||
52 | |||
53 | /** |
||
54 | * @param $config |
||
55 | * @return bool |
||
56 | */ |
||
57 | private function hasCustomKey($key, $config) |
||
61 | |||
62 | /** |
||
63 | * @param $config |
||
64 | * @return bool |
||
65 | */ |
||
66 | private function hasCustomCollapsedKey($key, $config) |
||
70 | } |
||
71 |