graphql.module in GraphQL 8
Same filename and directory in other branches
File
graphql.moduleView source
<?php
/**
* Implements hook_theme().
*/
function graphql_theme() {
return [
'page__graphql_explorer' => [
'render element' => 'elements',
'base hook' => 'block',
],
];
}
/**
* Implements hook_ENTITY_TYPE_insert().
*/
function view_insert() {
\Drupal::service('cache.graphql')
->deleteAll();
}
/**
* Implements hook_ENTITY_TYPE_update().
*/
function view_update() {
\Drupal::service('cache.graphql')
->deleteAll();
}
/**
* Implements hook_ENTITY_TYPE_delete().
*/
function view_delete() {
\Drupal::service('cache.graphql')
->deleteAll();
}
Functions
Name | Description |
---|---|
graphql_theme | Implements hook_theme(). |
view_delete | Implements hook_ENTITY_TYPE_delete(). |
view_insert | Implements hook_ENTITY_TYPE_insert(). |
view_update | Implements hook_ENTITY_TYPE_update(). |