1 | <?php |
||
12 | abstract class AbstractCore implements CoreInterface { |
||
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) { |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function getRandom() { |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getFieldHandler($entity, $entity_type, $field_name) { |
||
72 | |||
73 | /** |
||
74 | * Expands properties on the given entity object to the expected structure. |
||
75 | * |
||
76 | * @param \stdClass $entity |
||
77 | * Entity object. |
||
78 | */ |
||
79 | protected function expandEntityFields($entity_type, \stdClass $entity) { |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function clearStaticCaches() { |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function nodeAlter($node, $values) { |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function userAlter($user, $values) { |
||
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | public function nodeDeleteMultiple(array $nids) { |
||
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | */ |
||
124 | public function userDeleteMultiple(array $uids) { |
||
128 | |||
129 | } |
||
130 |