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\Language; /** * Provides a simple get and set wrapper to th..

Decoded Output download

<?php

namespace Drupal\Core\Language;

/**
 * Provides a simple get and set wrapper to the default language object.
 *
 * The default language must be provided without dependencies since it is both
 * configured and a dependency of the configuration system. The LanguageDefault
 * object is a container service. The default values are stored on the container
 * by \Drupal\Core\DrupalKernel::buildContainer(). This allows services to
 * override this parameter in a ServiceProvider, for example,
 * \Drupal\language\LanguageServiceProvider::alter().
 */
class LanguageDefault {

  /**
   * The default language.
   *
   * @var \Drupal\Core\Language\LanguageInterface
   */
  protected $language;

  /**
   * Constructs the default language object.
   *
   * @param array $values
   *   The properties used to construct the default language.
   */
  public function __construct(array $values) {
    $this->set(new Language($values));
  }

  /**
   * Gets the default language.
   *
   * @return \Drupal\Core\Language\LanguageInterface
   *   The default language.
   */
  public function get() {
    return $this->language;
  }

  /**
   * Sets the default language.
   *
   * @param \Drupal\Core\Language\LanguageInterface $language
   *   The default language.
   */
  public function set(LanguageInterface $language) {
    $this->language = $language;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Drupal\Core\Language;

/**
 * Provides a simple get and set wrapper to the default language object.
 *
 * The default language must be provided without dependencies since it is both
 * configured and a dependency of the configuration system. The LanguageDefault
 * object is a container service. The default values are stored on the container
 * by \Drupal\Core\DrupalKernel::buildContainer(). This allows services to
 * override this parameter in a ServiceProvider, for example,
 * \Drupal\language\LanguageServiceProvider::alter().
 */
class LanguageDefault {

  /**
   * The default language.
   *
   * @var \Drupal\Core\Language\LanguageInterface
   */
  protected $language;

  /**
   * Constructs the default language object.
   *
   * @param array $values
   *   The properties used to construct the default language.
   */
  public function __construct(array $values) {
    $this->set(new Language($values));
  }

  /**
   * Gets the default language.
   *
   * @return \Drupal\Core\Language\LanguageInterface
   *   The default language.
   */
  public function get() {
    return $this->language;
  }

  /**
   * Sets the default language.
   *
   * @param \Drupal\Core\Language\LanguageInterface $language
   *   The default language.
   */
  public function set(LanguageInterface $language) {
    $this->language = $language;
  }

}

Function Calls

None

Variables

None

Stats

MD5 daf156d991788b2808316f6671ddc74a
Eval Count 0
Decode Time 86 ms