Skip to content
Snippets Groups Projects
Commit 076b61a8 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-4523 Code standards.

parent 5d8acb3f
No related branches found
No related tags found
1 merge request!25ISTWCMS-4523: adding cache busting for information for menu when new menu link is added
...@@ -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') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment