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\Plugin\Context\EntityContextDefinition;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* Provides a context-aware block.
*/
#[Block(
id: "test_context_aware_unsatisfied",
admin_label: new TranslatableMarkup("Test context-aware unsatisfied block"),
context_definitions: [
'user' => new EntityContextDefinition('entity:foobar'),
]
)]
class TestContextAwareUnsatisfiedBlock extends BlockBase {
/**
* {@inheritdoc}
*/
public function build() {
return [
'#markup' => 'test',
];
}
}
?>
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\Plugin\Context\EntityContextDefinition;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* Provides a context-aware block.
*/
#[Block(
id: "test_context_aware_unsatisfied",
admin_label: new TranslatableMarkup("Test context-aware unsatisfied block"),
context_definitions: [
'user' => new EntityContextDefinition('entity:foobar'),
]
)]
class TestContextAwareUnsatisfiedBlock extends BlockBase {
/**
* {@inheritdoc}
*/
public function build() {
return [
'#markup' => 'test',
];
}
}
Function Calls
None |
Stats
MD5 | 521f7b2b5a23093e32e3f075b08dc024 |
Eval Count | 0 |
Decode Time | 117 ms |