Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
076b61a8
Commit
076b61a8
authored
4 years ago
by
Igor Biki
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4523 Code standards.
parent
5d8acb3f
No related branches found
No related tags found
1 merge request
!25
ISTWCMS-4523: adding cache busting for information for menu when new menu link is added
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uw_cfg_common.module
+2
-1
2 additions, 1 deletion
uw_cfg_common.module
with
2 additions
and
1 deletion
uw_cfg_common.module
+
2
−
1
View file @
076b61a8
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
* Module file.
* Module file.
*/
*/
use
Drupal\Core\Entity\EntityInterface
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\webform\WebformInterface
;
use
Drupal\webform\WebformInterface
;
use
Drupal\webform\WebformSubmissionStorageInterface
;
use
Drupal\webform\WebformSubmissionStorageInterface
;
...
@@ -12,7 +13,7 @@ use Drupal\webform\WebformSubmissionStorageInterface;
...
@@ -12,7 +13,7 @@ use Drupal\webform\WebformSubmissionStorageInterface;
/**
/**
* Implements hook_entity_presave().
* Implements hook_entity_presave().
*/
*/
function
uw_cfg_common_entity_presave
(
Drupal
\Core\Entity\
EntityInterface
$entity
)
{
function
uw_cfg_common_entity_presave
(
EntityInterface
$entity
)
{
// Check if we are on a menu link.
// Check if we are on a menu link.
if
(
$entity
->
getEntityTypeId
()
==
'menu_link_content'
)
{
if
(
$entity
->
getEntityTypeId
()
==
'menu_link_content'
)
{
...
...
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