DrupalKernel::$bootstrapContainerClass

Holds the class used for instantiating the bootstrap container. Type: string File core/lib/Drupal/Core/DrupalKernel.php, line 90 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected $bootstrapContainerClass = '\Drupal\Component\DependencyInjection\PhpArrayContainer';

DrupalKernel::$bootstrapContainer

Holds the bootstrap container. Type: \Symfony\Component\DependencyInjection\ContainerInterface File core/lib/Drupal/Core/DrupalKernel.php, line 97 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected $bootstrapContainer;

DrupalKernel::$booted

Whether the kernel has been booted. Type: bool File core/lib/Drupal/Core/DrupalKernel.php, line 118 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected $booted = FALSE;

DrupalKernel::$allowDumping

Whether the container can be dumped. Type: bool File core/lib/Drupal/Core/DrupalKernel.php, line 162 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected $allowDumping;

DrupalKernel

The DrupalKernel class is the core of Drupal itself. This class is responsible for building the Dependency Injection Container and also deals with the registration of service providers. It allows registered service providers to add their services to the container. Core provides the CoreServiceProvider, which, in addition to registering any core services that cannot be registered in the core.services.yaml file, adds any compiler passes needed by core, e.g. for processing tagged services. Each mo

DrupalDateTime::__construct

public DrupalDateTime::__construct($time = 'now', $timezone = NULL, $settings = array()) Constructs a date object. Parameters string $time: A date/input_time_adjusted string. Defaults to 'now'. mixed $timezone: PHP DateTimeZone object, string or NULL allowed. Defaults to NULL. array $settings: validate_format: (optional) Boolean choice to validate the created date using the input format. The format used in createFromFormat() allows slightly different values than format(). Using an input forma

DrupalDateTime::prepareTimezone

protected DrupalDateTime::prepareTimezone($timezone) Overrides prepareTimezone(). Override basic component timezone handling to use Drupal's knowledge of the preferred user timezone. Overrides DateTimePlus::prepareTimezone File core/lib/Drupal/Core/Datetime/DrupalDateTime.php, line 67 Class DrupalDateTime Extends DateTimePlus(). Namespace Drupal\Core\Datetime Code protected function prepareTimezone($timezone) { if (empty($timezone)) { // Fallback to user or system default timezon

DrupalDateTime::format

public DrupalDateTime::format($format, $settings = array()) Overrides format(). Parameters string $format: A format string using either PHP's date(). array $settings: timezone: (optional) String timezone name. Defaults to the timezone of the date object. langcode: (optional) String two letter language code used to control the result of the format() method. Defaults to NULL. Return value string The formatted value of the date. Since the format may contain user input, this value should be e

DrupalDateTime::$formatTranslationCache

Format string translation cache. File core/lib/Drupal/Core/Datetime/DrupalDateTime.php, line 28 Class DrupalDateTime Extends DateTimePlus(). Namespace Drupal\Core\Datetime Code protected $formatTranslationCache;

DrupalDateTime

Extends DateTimePlus(). This class extends the basic component and adds in Drupal-specific handling, like translation of the format() method. Static methods in base class can also be used to create DrupalDateTime objects. For example: DrupalDateTime::createFromArray( array('year' => 2010, 'month' => 9, 'day' => 28) ) Hierarchy class \Drupal\Component\Datetime\DateTimePlus uses ToStringTraitclass \Drupal\Core\Datetime\DrupalDateTime uses StringTranslationTrait See also \Drupal/Comp