1 | <?php |
||
21 | abstract class ViewDeriverBase extends DeriverBase implements ContainerDeriverInterface { |
||
22 | use ViewDeriverHelperTrait { |
||
23 | getRowResolveType as private traitGetRowResolveType; |
||
24 | } |
||
25 | /** |
||
26 | * The entity type manager. |
||
27 | * |
||
28 | * @var \Drupal\Core\Entity\EntityTypeManagerInterface |
||
29 | */ |
||
30 | protected $entityTypeManager; |
||
31 | |||
32 | /** |
||
33 | * The interface plugin manager to search for return type candidates. |
||
34 | * |
||
35 | * @var \Drupal\Component\Plugin\PluginManagerInterface |
||
36 | */ |
||
37 | protected $interfacePluginManager; |
||
38 | |||
39 | /** |
||
40 | * An key value pair of data tables and the entities they belong to. |
||
41 | * |
||
42 | * @var string[] |
||
43 | */ |
||
44 | protected $dataTables; |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public static function create(ContainerInterface $container, $basePluginId) { |
||
55 | |||
56 | /** |
||
57 | * Creates a ViewDeriver object. |
||
58 | * |
||
59 | * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager |
||
60 | * An entity type manager instance. |
||
61 | * @param \Drupal\Component\Plugin\PluginManagerInterface $interfacePluginManager |
||
62 | * The plugin manager for graphql interfaces. |
||
63 | */ |
||
64 | public function __construct( |
||
71 | |||
72 | /** |
||
73 | * Retrieves the entity type id of an entity by its base or data table. |
||
74 | * |
||
75 | * @param string $table |
||
76 | * The base or data table of an entity. |
||
77 | * |
||
78 | * @return string |
||
79 | * The id of the entity type that the given base table belongs to. |
||
80 | */ |
||
81 | protected function getEntityTypeByTable($table) { |
||
97 | |||
98 | /** |
||
99 | * Retrieves the type the view's rows resolve to. |
||
100 | * |
||
101 | * @param \Drupal\views\ViewEntityInterface $view |
||
102 | * The view entity. |
||
103 | * @param string $displayId |
||
104 | * Interface plugin manager. |
||
105 | * |
||
106 | * @return null|string |
||
107 | * The name of the type or NULL if the type could not be derived. |
||
108 | */ |
||
109 | protected function getRowResolveType(ViewEntityInterface $view, $displayId) { |
||
112 | |||
113 | } |
||
114 |