Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/stolberg/web/core/modules/navigation/src/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/stolberg/web/core/modules/navigation/src/RenderCallbacks.php

<?php

declare(strict_types=1);

namespace Drupal\navigation;

use Drupal\Core\Security\Attribute\TrustedCallback;
use Drupal\navigation\Plugin\SectionStorage\NavigationSectionStorage;

/**
 * Defines a class for render element callbacks.
 *
 * @internal
 */
final class RenderCallbacks {

  /**
   * Pre-render callback for layout builder.
   */
  #[TrustedCallback]
  public static function alterLayoutBuilder(array $element): array {
    if (($element['#section_storage'] ?? NULL) instanceof NavigationSectionStorage) {
      // Remove add section links that exist before and after the existing
      // section.
      unset($element['layout_builder'][0], $element['layout_builder'][2]);
      // Remove add block link from the footer section and the remove and
      // configure buttons from the existing section.
      unset(
        $element['layout_builder'][1]['remove'],
        $element['layout_builder'][1]['configure'],
        $element['layout_builder'][1]['layout-builder__section']['footer']['layout_builder_add_block'],
      );
    }
    return $element;
  }

}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net