DbDumpApplication::getCommandName

protected DbDumpApplication::getCommandName(InputInterface $input) Gets the name of the command based on input. Parameters InputInterface $input The input interface: Return value string The command name Overrides Application::getCommandName File core/lib/Drupal/Core/Command/DbDumpApplication.php, line 16 Class DbDumpApplication Provides a command to dump a database generation script. Namespace Drupal\Core\Command Code protected function getCommandName(InputInterface $input) { retur

DbDumpApplication

Provides a command to dump a database generation script. Hierarchy class \Symfony\Component\Console\Applicationclass \Drupal\Core\Command\DbDumpApplication File core/lib/Drupal/Core/Command/DbDumpApplication.php, line 11 Namespace Drupal\Core\Command Members Name Modifiers Type Description Application::$autoExit private property Application::$catchExceptions private property Application::$commands private property Application::$defaultCommand private

DbCommandBase::getDatabaseConnection

protected DbCommandBase::getDatabaseConnection(InputInterface $input) Parse input options decide on a database. Parameters \Symfony\Component\Console\Input\InputInterface $input: Input object. Return value \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Command/DbCommandBase.php, line 31 Class DbCommandBase Base command that abstracts handling of database connection arguments. Namespace Drupal\Core\Command Code protected function getDatabaseConnection(InputInterface $input

DbCommandBase::configure

protected DbCommandBase::configure() Configures the current command. Overrides Command::configure File core/lib/Drupal/Core/Command/DbCommandBase.php, line 18 Class DbCommandBase Base command that abstracts handling of database connection arguments. Namespace Drupal\Core\Command Code protected function configure() { $this->addOption('database', NULL, InputOption::VALUE_OPTIONAL, 'The database connection name to use.', 'default') ->addOption('database-url', 'db-url', InputOp

DbCommandBase

Base command that abstracts handling of database connection arguments. Hierarchy class \Symfony\Component\Console\Command\Commandclass \Drupal\Core\Command\DbCommandBase File core/lib/Drupal/Core/Command/DbCommandBase.php, line 13 Namespace Drupal\Core\Command Members Name Modifiers Type Description Command::$aliases private property Command::$application private property Command::$applicationDefinitionMerged private property Command::$applicationDefin

date_iso8601

date_iso8601($date) Returns an ISO8601 formatted date based on the given date. Parameters $date: A UNIX timestamp. Return value string An ISO8601 formatted date. Related topics Formatting Functions to format numbers, strings, dates, etc. File core/includes/common.inc, line 335 Common functions that many Drupal modules will need to reference. Code function date_iso8601($date) { // The DATE_ISO8601 constant cannot be used here because it does not match // date('c') and produces invalid

DATETIME_STORAGE_TIMEZONE

Defines the timezone that dates should be stored in. File core/modules/datetime/datetime.module, line 13 Field hooks to implement a simple datetime field. Code const DATETIME_STORAGE_TIMEZONE = 'UTC';

datetime_range_post_update_translatable_separator

datetime_range_post_update_translatable_separator() Clear caches to ensure schema changes are read. File core/modules/datetime_range/datetime_range.post_update.php, line 16 Post-update functions for Datetime Range module. Code function datetime_range_post_update_translatable_separator() { // Empty post-update hook to cause a cache rebuild. }

datetime_help

datetime_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/datetime/datetime.module, line 28 Field hooks to implement a simple datetime field. Code function datetime_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.datetime': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Datetime module provides a Date field that stores dates and

datetime_field_views_data

datetime_field_views_data(FieldStorageConfigInterface $field_storage) Implements hook_field_views_data(). File core/modules/datetime/datetime.views.inc, line 13 Provides views data for the datetime module. Code function datetime_field_views_data(FieldStorageConfigInterface $field_storage) { // @todo This code only covers configurable fields, handle base table fields // in https://www.drupal.org/node/2489476. $data = views_field_default_views_data($field_storage); foreach ($data as $