1 | <?php |
||
10 | abstract class AbstractHandler implements FieldHandlerInterface { |
||
11 | /** |
||
12 | * Field storage definition. |
||
13 | * |
||
14 | * @var \Drupal\field\Entity\FieldStorageConfig |
||
15 | */ |
||
16 | protected $fieldInfo = NULL; |
||
17 | |||
18 | /** |
||
19 | * Field configuration definition. |
||
20 | * |
||
21 | * @var \Drupal\field\Entity\FieldConfig |
||
22 | */ |
||
23 | protected $fieldConfig = NULL; |
||
24 | |||
25 | /** |
||
26 | * Constructs an AbstractHandler object. |
||
27 | * |
||
28 | * @param object $entity |
||
29 | * The simulated entity object containing field information. |
||
30 | * @param string $entity_type |
||
31 | * The entity type. |
||
32 | * @param string $field_name |
||
33 | * The field name. |
||
34 | * |
||
35 | * @throws \Exception |
||
36 | * Thrown when the given field name does not exist on the entity. |
||
37 | */ |
||
38 | public function __construct(\stdClass $entity, $entity_type, $field_name) { |
||
64 | |||
65 | } |
||
66 |