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\Core\Validation; /** * Defines an interface used in validation. ..
Decoded Output download
<?php
namespace Drupal\Core\Validation;
/**
* Defines an interface used in validation.
*
* This replaces the interface used by the Symfony validator in order
* to indicate that the Drupal code is actually independent from the
* Symfony translation component.
*
* @see https://github.com/symfony/symfony/pull/6189
* @see https://github.com/symfony/symfony/issues/15714
*/
interface TranslatorInterface {
/**
* Translates the given message.
*
* @param string $id
* The message id (may also be an object that can be cast to string).
* @param array $parameters
* An array of parameters for the message.
* @param string|null $domain
* The domain for the message or null to use the default.
* @param string|null $locale
* The locale or null to use the default.
*
* @return string
* The translated string.
*
* @throws \InvalidArgumentException
* If the locale contains invalid characters.
*/
public function trans($id, array $parameters = [], $domain = NULL, $locale = NULL);
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\Core\Validation;
/**
* Defines an interface used in validation.
*
* This replaces the interface used by the Symfony validator in order
* to indicate that the Drupal code is actually independent from the
* Symfony translation component.
*
* @see https://github.com/symfony/symfony/pull/6189
* @see https://github.com/symfony/symfony/issues/15714
*/
interface TranslatorInterface {
/**
* Translates the given message.
*
* @param string $id
* The message id (may also be an object that can be cast to string).
* @param array $parameters
* An array of parameters for the message.
* @param string|null $domain
* The domain for the message or null to use the default.
* @param string|null $locale
* The locale or null to use the default.
*
* @return string
* The translated string.
*
* @throws \InvalidArgumentException
* If the locale contains invalid characters.
*/
public function trans($id, array $parameters = [], $domain = NULL, $locale = NULL);
}
Function Calls
None |
Stats
MD5 | 10d1b6a6ade35ff0c9d85ddc7e6bb990 |
Eval Count | 0 |
Decode Time | 94 ms |