MachineName

Provides a machine name render element. Provides a form element to enter a machine name, which is validated to ensure that the name is unique and does not contain disallowed characters. The element may be automatically populated via JavaScript when used in conjunction with a separate "source" form element (typically specifying the human-readable name). As the user types text into the source element, the JavaScript converts all values to lower case, replaces any remaining disallowed characters w

Database::getConnection

final public static Database::getConnection($target = 'default', $key = NULL) Gets the connection object for the specified database key and target. Parameters string $target: The database target name. string $key: The database connection key. Defaults to NULL which means the active key. Return value \Drupal\Core\Database\Connection The corresponding connection object. File core/lib/Drupal/Core/Database/Database.php, line 150 Class Database Primary front-controller for the database system

Registry::getRuntime

public Registry::getRuntime() Returns the incomplete, runtime theme registry. Return value \Drupal\Core\Utility\ThemeRegistry A shared instance of the ThemeRegistry class, provides an ArrayObject that allows it to be accessed with array syntax and isset(), and is more lightweight than the full registry. File core/lib/Drupal/Core/Theme/Registry.php, line 239 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code public function getRuntime() { $this->in

template_preprocess_views_view_summary

template_preprocess_views_view_summary(&$variables) Prepares variables for views summary templates. The summary prints a single record from a row, with fields. Default template: views-view-summary.html.twig. Parameters array $variables: An associative array containing: view: A ViewExecutable object. rows: The raw row data. File core/modules/views/views.theme.inc, line 239 Preprocessors and helper functions to make theming easier. Code function template_preprocess_views_view_summary(&

BasicAuth::$configFactory

The config factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/modules/basic_auth/src/Authentication/Provider/BasicAuth.php, line 25 Class BasicAuth HTTP Basic authentication provider. Namespace Drupal\basic_auth\Authentication\Provider Code protected $configFactory;

DbUpdateController::getModuleUpdates

protected DbUpdateController::getModuleUpdates() Retrieves module updates. Return value array The module updates that can be performed. File core/modules/system/src/Controller/DbUpdateController.php, line 695 Class DbUpdateController Controller routines for database update routes. Namespace Drupal\system\Controller Code protected function getModuleUpdates() { $return = array(); $updates = update_get_update_list(); foreach ($updates as $module => $update) { $return[$module

TranslationManager::formatPlural

public TranslationManager::formatPlural($count, $singular, $plural, array $args = array(), array $options = array()) Formats a string containing a count of items. This function ensures that the string is pluralized correctly. Since TranslationInterface::translate() is called by this function, make sure not to pass already-localized strings to it. See PluralTranslatableMarkup::createFromTranslatedString() for that. For example: $output = $string_translation->formatPlural($node->comment_c

VocabularyResetForm::$termStorage

The term storage. Type: \Drupal\taxonomy\TermStorageInterface File core/modules/taxonomy/src/Form/VocabularyResetForm.php, line 20 Class VocabularyResetForm Provides confirmation form for resetting a vocabulary to alphabetical order. Namespace Drupal\taxonomy\Form Code protected $termStorage;

StringBase::addLocation

public StringBase::addLocation($type, $name) Adds a location for this string. Parameters string $type: Location type that may be any arbitrary string. Types used in Drupal core are: 'javascript', 'path', 'code', 'configuration'. string $name: Location name. Drupal path in case of online discovered translations, file path in case of imported strings, configuration name for strings that come from configuration, etc. Return value $this Overrides StringInterface::addLocation File core/modules/loc

Registry::completeSuggestion

protected Registry::completeSuggestion($hook, array &$cache) Completes the definition of the requested suggestion hook. Parameters string $hook: The name of the suggestion hook to complete. array $cache: The theme registry, as documented in \Drupal\Core\Theme\Registry::processExtension(). File core/lib/Drupal/Core/Theme/Registry.php, line 596 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code protected function completeSuggestion($hook, array &