entity_hierarchy-8.x-2.24/modules/entity_hierarchy_microsite/tests/src/Traits/MenuRebuildTrait.php

modules/entity_hierarchy_microsite/tests/src/Traits/MenuRebuildTrait.php
<?php

declare(strict_types=1);

namespace Drupal\Tests\entity_hierarchy_microsite\Traits;

/**
 * Defines a trait for rebuilding menu if needed.
 */
trait MenuRebuildTrait {

  /**
   * Triggers menu rebuilding if it's needed.
   */
  protected function triggerMenuRebuild(): void {
    \Drupal::service('entity_hierarchy_microsite.menu_rebuild_processor')->destruct();
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc