Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
transform_api
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
transform_api
Commits
4849ace8
Commit
4849ace8
authored
11 months ago
by
Martin Giessing
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3445730
by erik_petra: After creating a menu, menu transform block does not show up
parent
09fa3579
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
transform_api.module
+24
-0
24 additions, 0 deletions
transform_api.module
with
24 additions
and
0 deletions
transform_api.module
+
24
−
0
View file @
4849ace8
...
...
@@ -97,3 +97,27 @@ function transform_api_entity_base_field_info_alter(&$fields, EntityTypeInterfac
}
}
}
/**
* Implements hook_ENTITY_TYPE_insert().
*/
function
transform_api_menu_insert
(
EntityInterface
$entity
)
{
// Invalidate the transform block cache to update menu-based derivatives.
\Drupal
::
service
(
'plugin.manager.transform_api.transform_block'
)
->
clearCachedDefinitions
();
}
/**
* Implements hook_ENTITY_TYPE_update().
*/
function
transform_api_menu_update
(
EntityInterface
$entity
)
{
// Invalidate the transform block cache to update menu-based derivatives.
\Drupal
::
service
(
'plugin.manager.transform_api.transform_block'
)
->
clearCachedDefinitions
();
}
/**
* Implements hook_ENTITY_TYPE_delete().
*/
function
transform_api_menu_delete
(
EntityInterface
$entity
)
{
// Invalidate the transform block cache to update menu-based derivatives.
\Drupal
::
service
(
'plugin.manager.transform_api.transform_block'
)
->
clearCachedDefinitions
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment