DRUPAL_AUTHENTICATED_RID

Role ID for authenticated users; should match what's in the "role" table. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use Drupal\Core\Session\AccountInterface::AUTHENTICATED_ROLE or \Drupal\user\RoleInterface::AUTHENTICATED_ID instead. File core/includes/bootstrap.inc, line 71 Functions that need to be loaded on every Drupal request. Code const DRUPAL_AUTHENTICATED_RID = AccountInterface::AUTHENTICATED_ROLE;

drupal_attach_tabledrag

drupal_attach_tabledrag(&$element, array $options) Assists in attaching the tableDrag JavaScript behavior to a themed table. Draggable tables should be used wherever an outline or list of sortable items needs to be arranged by an end-user. Draggable tables are very flexible and can manipulate the value of form elements placed within individual columns. To set up a table to use drag and drop in place of weight select-lists or in place of a form that contains parent relationships, the form mu

DRUPAL_ANONYMOUS_RID

Role ID for anonymous users; should match what's in the "role" table. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use Drupal\Core\Session\AccountInterface::ANONYMOUS_ROLE or \Drupal\user\RoleInterface::ANONYMOUS_ID instead. File core/includes/bootstrap.inc, line 62 Functions that need to be loaded on every Drupal request. Code const DRUPAL_ANONYMOUS_RID = AccountInterface::ANONYMOUS_ROLE;

DrupalTranslator::transChoice

public DrupalTranslator::transChoice($id, $number, array $parameters = array(), $domain = NULL, $locale = NULL) Translates the given choice message by choosing a translation according to a number. Parameters string $id The message id (may also be an object that can be cast to string): int $number The number to use to find the indice of the message: array $parameters An array of parameters for the message: string|null $domain The domain for the message or null to use the default: string|null $l

DrupalTranslator::trans

public DrupalTranslator::trans($id, array $parameters = array(), $domain = NULL, $locale = NULL) Translates the given message. Parameters string $id The message id (may also be an object that can be cast to string): array $parameters An array of parameters for the message: string|null $domain The domain for the message or null to use the default: string|null $locale The locale or null to use the default: Return value string The translated string Throws \InvalidArgumentException If the locale

DrupalTranslator::setLocale

public DrupalTranslator::setLocale($locale) Sets the current locale. Parameters string $locale The locale: Throws \InvalidArgumentException If the locale contains invalid characters Overrides TranslatorInterface::setLocale File core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 58 Class DrupalTranslator Translates strings using Drupal's translation system. Namespace Drupal\Core\Validation Code public function setLocale($locale) { $this->locale = $locale; }

DrupalTranslator::processParameters

protected DrupalTranslator::processParameters(array $parameters) Processes the parameters array for use with t(). File core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 72 Class DrupalTranslator Translates strings using Drupal's translation system. Namespace Drupal\Core\Validation Code protected function processParameters(array $parameters) { $return = array(); foreach ($parameters as $key => $value) { // We allow the values in the parameters to be safe string objec

DrupalTranslator::getOptions

protected DrupalTranslator::getOptions($domain = NULL, $locale = NULL) Returns options suitable for use with t(). File core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 100 Class DrupalTranslator Translates strings using Drupal's translation system. Namespace Drupal\Core\Validation Code protected function getOptions($domain = NULL, $locale = NULL) { // We do not support domains, so we ignore this parameter. // If locale is left NULL, t() will default to the interface langu

DrupalTranslator::getLocale

public DrupalTranslator::getLocale() Returns the current locale. Return value string The locale Overrides TranslatorInterface::getLocale File core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 65 Class DrupalTranslator Translates strings using Drupal's translation system. Namespace Drupal\Core\Validation Code public function getLocale() { return $this->locale ? $this->locale : \Drupal::languageManager()->getCurrentLanguage()->getId(); }

DrupalTranslator::$locale

The locale used for translating. Type: string File core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 20 Class DrupalTranslator Translates strings using Drupal's translation system. Namespace Drupal\Core\Validation Code protected $locale;