1 | <?php |
||
15 | abstract class BlockRenderer implements BlockRendererInterface |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var DomainInterface |
||
20 | */ |
||
21 | protected $domain; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $template_root_path; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * BlockRenderer constructor. |
||
31 | * |
||
32 | * @param DomainInterface $domain |
||
33 | */ |
||
34 | public function __construct(DomainInterface $domain) |
||
39 | |||
40 | |||
41 | /** |
||
42 | * Sets the root path to the main block template. |
||
43 | */ |
||
44 | private function setTemplateRootPath() |
||
48 | |||
49 | |||
50 | /** |
||
51 | * Exposes the root path for the main block template. |
||
52 | * @return string |
||
53 | */ |
||
54 | public function templateRootPath() |
||
58 | |||
59 | |||
60 | /** |
||
61 | * converts GraphQL GUID into EE DB ID |
||
62 | * |
||
63 | * @param string $GUID |
||
64 | * @return int |
||
65 | */ |
||
66 | protected function parseGUID($GUID) |
||
71 | } |
||
72 |