1 | <?php |
||
11 | abstract class AbstractCore implements CoreInterface { |
||
12 | /** |
||
13 | * System path to the Drupal installation. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $drupalRoot; |
||
18 | |||
19 | /** |
||
20 | * URI for the Drupal installation. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $uri; |
||
25 | |||
26 | /** |
||
27 | * Random generator. |
||
28 | * |
||
29 | * @var \Drupal\Component\Utility\Random |
||
30 | */ |
||
31 | protected $random; |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function __construct($drupal_root, $uri = 'default', Random $random = NULL) { |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getRandom() { |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getFieldHandler($entity, $entity_type, $field_name) { |
||
71 | |||
72 | /** |
||
73 | * Expands properties on the given entity object to the expected structure. |
||
74 | * |
||
75 | * @param \stdClass $entity |
||
76 | * Entity object. |
||
77 | */ |
||
78 | protected function expandEntityFields($entity_type, \stdClass $entity) { |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function nodeAlter($node, $values) { |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function userAlter($user, $values) { |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function clearStaticCaches() { |
||
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | public function nodeDeleteMultiple(array $nids) { |
||
119 | |||
120 | /** |
||
121 | * {@inheritdoc} |
||
122 | */ |
||
123 | public function userDeleteMultiple(array $uids) { |
||
127 | |||
128 | } |
||
129 |