DateHelper::dayOfWeek

public static DateHelper::dayOfWeek($date = NULL) Returns day of week for a given date (0 = Sunday). Parameters mixed $date: (optional) A DrupalDateTime object or a date string. Defaults to NULL, which means use the current date. Return value int The number of the day in the week. File core/lib/Drupal/Core/Datetime/DateHelper.php, line 501 Class DateHelper Defines Gregorian Calendar date values. Namespace Drupal\Core\Datetime Code public static function dayOfWeek($date = NULL) { if

TemporaryStream::getExternalUrl

public TemporaryStream::getExternalUrl() Returns a web accessible URL for the resource. This function should return a URL that can be embedded in a web page and accessed from a browser. For example, the external URL of "youtube://xIpLd0WQKCY" might be "http://www.youtube.com/watch?v=xIpLd0WQKCY". Return value string Returns a string containing a web accessible URL for the resource. Overrides StreamWrapperInterface::getExternalUrl File core/lib/Drupal/Core/StreamWrapper/TemporaryStream.php, lin

ViewExecutable::getUrlInfo

public ViewExecutable::getUrlInfo($display_id = '') Gets the Url object associated with the display handler. Parameters string $display_id: (optional) The display ID (used only to detail an exception). Return value \Drupal\Core\Url The display handlers URL object. Throws \InvalidArgumentException Thrown when the display plugin does not have a URL to return. File core/modules/views/src/ViewExecutable.php, line 1997 Class ViewExecutable Represents a view as a whole. Namespace Drupal\vi

FILE_CHMOD_DIRECTORY

Default mode for new directories. See drupal_chmod(). Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::CHMOD_DIRECTORY. File core/includes/file.inc, line 24 API for handling file uploads and server file management. Code const FILE_CHMOD_DIRECTORY = FileSystem::CHMOD_DIRECTORY;

SelectExtender::getExpressions

public &SelectExtender::getExpressions() Returns a reference to the expressions array for this query. Because this method returns by reference, alter hooks may edit the expressions array directly to make their changes. If just adding expressions, however, the use of addExpression() is preferred. Note that this method must be called by reference as well: $fields =& $query->getExpressions(); Return value A reference to the expression array structure. Overrides SelectInterface::getExp

SystemController::compactPage

public SystemController::compactPage($mode) Sets whether the admin menu is in compact mode or not. Parameters string $mode: Valid values are 'on' and 'off'. Return value \Symfony\Component\HttpFoundation\RedirectResponse File core/modules/system/src/Controller/SystemController.php, line 175 Class SystemController Returns responses for System routes. Namespace Drupal\system\Controller Code public function compactPage($mode) { user_cookie_save(array('admin_compact_mode' => ($mode

ViewsData::getAll

public ViewsData::getAll() Gets all table data. Return value array $data An array of table data. See also https://www.drupal.org/node/2723553 File core/modules/views/src/ViewsData.php, line 119 Class ViewsData Class to manage and lazy load cached views data. Namespace Drupal\views Code public function getAll() { if (!$this->fullyLoaded) { $this->allStorage = $this->getData(); } // Set storage from allStorage outside of the fullyLoaded check to prevent // cache c

ImageStyleFlushForm::getDescription

public ImageStyleFlushForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides EntityConfirmFormBase::getDescription File core/modules/image/src/Form/ImageStyleFlushForm.php, line 23 Class ImageStyleFlushForm Form controller for image style flush. Namespace Drupal\image\Form Code public function getDescription() { return $this->t('This operation does not change the original images but the copies created for th

Tasks

Specifies installation tasks for MySQL and equivalent databases. Hierarchy class \Drupal\Core\Database\Install\Tasksclass \Drupal\Core\Database\Driver\mysql\Install\Tasks File core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php, line 13 Namespace Drupal\Core\Database\Driver\mysql\Install Members Name Modifiers Type Description Tasks::$pdoDriver protected property The PDO driver name for MySQL and equivalent databases. Overrides Tasks::$pdoDriver Tasks::$resul

UrlGenerator::$context

Type: RequestContext File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 25 Class UrlGenerator Generates URLs from route names and parameters. Namespace Drupal\Core\Routing Code protected $context;