Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Drupal\block_test\Plugin\Block; use Drupal\Core\Block\Attribute\Block; u..

Decoded Output download

<?php

namespace Drupallock_test\Plugin\Block;

use Drupal\Core\Block\Attribute\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Provides a block to test caching.
 */
#[Block(
  id: "test_form_in_block",
  admin_label: new TranslatableMarkup("Test form block caching"),
)]
class TestFormBlock extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    return \Drupal::formBuilder()->getForm('Drupallock_test\Form\TestForm');
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Drupal\block_test\Plugin\Block;

use Drupal\Core\Block\Attribute\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Provides a block to test caching.
 */
#[Block(
  id: "test_form_in_block",
  admin_label: new TranslatableMarkup("Test form block caching"),
)]
class TestFormBlock extends BlockBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    return \Drupal::formBuilder()->getForm('Drupal\block_test\Form\TestForm');
  }

}

Function Calls

None

Variables

None

Stats

MD5 10a8157c17befb56a37bfdf11d614c0f
Eval Count 0
Decode Time 83 ms