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\config_test; use Drupal\Core\Access\AccessResult; use Drupal\Core..
Decoded Output download
<?php
namespace Drupal\config_test;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Entity\EntityInterface;
/**
* Defines the access control handler for the config_test entity type.
*
* @see \Drupal\config_test\Entity\ConfigTest
*/
class ConfigTestAccessControlHandler extends EntityAccessControlHandler {
/**
* {@inheritdoc}
*/
public function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
return AccessResult::allowed();
}
/**
* {@inheritdoc}
*/
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
return AccessResult::allowed();
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\config_test;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Entity\EntityInterface;
/**
* Defines the access control handler for the config_test entity type.
*
* @see \Drupal\config_test\Entity\ConfigTest
*/
class ConfigTestAccessControlHandler extends EntityAccessControlHandler {
/**
* {@inheritdoc}
*/
public function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
return AccessResult::allowed();
}
/**
* {@inheritdoc}
*/
protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
return AccessResult::allowed();
}
}
Function Calls
None |
Stats
MD5 | 04428452a5ca9b14650bb7a3d060e0fe |
Eval Count | 0 |
Decode Time | 78 ms |