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\editor; use Drupal\Core\Entity\EntityAccessControlHandler; use Dr..

Decoded Output download

<?php

namespace Drupal\editor;

use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface;

/**
 * Defines the access control handler for the text editor entity type.
 *
 * @see \Drupal\editor\Entity\Editor
 */
class EditorAccessControlHandler extends EntityAccessControlHandler {

  /**
   * {@inheritdoc}
   */
  protected function checkAccess(EntityInterface $editor, $operation, AccountInterface $account) {
    /** @var \Drupal\editor\EditorInterface $editor */
    return $editor->getFilterFormat()->access($operation, $account, TRUE);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Drupal\editor;

use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface;

/**
 * Defines the access control handler for the text editor entity type.
 *
 * @see \Drupal\editor\Entity\Editor
 */
class EditorAccessControlHandler extends EntityAccessControlHandler {

  /**
   * {@inheritdoc}
   */
  protected function checkAccess(EntityInterface $editor, $operation, AccountInterface $account) {
    /** @var \Drupal\editor\EditorInterface $editor */
    return $editor->getFilterFormat()->access($operation, $account, TRUE);
  }

}

Function Calls

None

Variables

None

Stats

MD5 e6261a934cb3acf79e41de111a97a077
Eval Count 0
Decode Time 97 ms