1 | <?php |
||
11 | abstract class AbstractCore implements CoreInterface { |
||
12 | |||
13 | /** |
||
14 | * System path to the Drupal installation. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $drupalRoot; |
||
19 | |||
20 | /** |
||
21 | * URI for the Drupal installation. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $uri; |
||
26 | |||
27 | /** |
||
28 | * Random generator. |
||
29 | * |
||
30 | * @var \Drupal\Component\Utility\Random |
||
31 | */ |
||
32 | protected $random; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function __construct($drupal_root, $uri = 'default', Random $random = NULL) { |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getRandom() { |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getFieldHandler($entity, $entity_type, $field_name) { |
||
68 | |||
69 | /** |
||
70 | * Expands properties on the given entity object to the expected structure. |
||
71 | * |
||
72 | * @param \stdClass $entity |
||
73 | * Entity object. |
||
74 | */ |
||
75 | protected function expandEntityFields($entity_type, \stdClass $entity) { |
||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function nodeAlter($node, $values) { |
||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function userAlter($user, $values) { |
||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function clearStaticCaches() { |
||
101 | |||
102 | } |
||
103 |