template_preprocess_color_scheme_form

template_preprocess_color_scheme_form(&$variables) Prepares variables for color scheme form templates. Default template: color-scheme-form.html.twig. Parameters array $variables: An associative array containing: form: A render element representing the form. File core/modules/color/color.module, line 292 Allows users to change the color scheme of themes. Code function template_preprocess_color_scheme_form(&$variables) { $form = &$variables['form']; $theme = $form['theme'][

AccountPermissionsCacheContext::getLabel

public static AccountPermissionsCacheContext::getLabel() Returns the label of the cache context. Return value string The label of the cache context. Overrides CacheContextInterface::getLabel File core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php, line 39 Class AccountPermissionsCacheContext Defines the AccountPermissionsCacheContext service, for "per permission" caching. Namespace Drupal\Core\Cache\Context Code public static function getLabel() { return t("Accoun

AccountInterface::getAccountName

public AccountInterface::getAccountName() Returns the unaltered login name of this account. Return value string An unsanitized plain-text string with the name of this account that is used to log in. Only display this name to admins and to the user who owns this account, and only in the context of the name used to login. For any other display purposes, use \Drupal\Core\Session\AccountInterface::getDisplayName() instead. File core/lib/Drupal/Core/Session/AccountInterface.php, line 129 Class

ConfigNamesMapper::getConfigData

public ConfigNamesMapper::getConfigData() Returns an array with all configuration data. Return value array Configuration data keyed by configuration names. Overrides ConfigMapperInterface::getConfigData File core/modules/config_translation/src/ConfigNamesMapper.php, line 415 Class ConfigNamesMapper Configuration mapper base implementation. Namespace Drupal\config_translation Code public function getConfigData() { $config_data = array(); foreach ($this->getConfigNames() as $name

EditorInterface::getFilterFormat

public EditorInterface::getFilterFormat() Returns the filter format this text editor is associated with. This could be NULL if the associated filter format is still being created. Return value \Drupal\filter\FilterFormatInterface|null See also hasAssociatedFilterFormat() File core/modules/editor/src/EditorInterface.php, line 31 Class EditorInterface Provides an interface defining a text editor entity. Namespace Drupal\editor Code public function getFilterFormat();

WidgetBaseInterface::flagErrors

public WidgetBaseInterface::flagErrors(FieldItemListInterface $items, ConstraintViolationListInterface $violations, array $form, FormStateInterface $form_state) Reports field-level validation errors against actual form elements. Parameters \Drupal\Core\Field\FieldItemListInterface $items: The field values. \Symfony\Component\Validator\ConstraintViolationListInterface $violations: A list of constraint violations to flag. array $form: The form structure where field elements are attached to. This

FileUsageBase::add

public FileUsageBase::add(FileInterface $file, $module, $type, $id, $count = 1) Records that a module is using a file. Examples: A module that associates files with nodes, so $type would be 'node' and $id would be the node's nid. Files for all revisions are stored within a single nid. The User module associates an image with a user, so $type would be 'user' and the $id would be the user's uid. Parameters \Drupal\file\FileInterface $file: A file entity. string $module: The name of the module

OpenDialogCommand::setDialogOption

public OpenDialogCommand::setDialogOption($key, $value) Sets a single dialog option value. Parameters string $key: Key of the dialog option. Any jQuery UI option can be used. See http://api.jqueryui.com/dialog. mixed $value: Option to be passed to the dialog implementation. File core/lib/Drupal/Core/Ajax/OpenDialogCommand.php, line 111 Class OpenDialogCommand Defines an AJAX command to open certain content in a dialog. Namespace Drupal\Core\Ajax Code public function setDialogOption($k

StorageComparer::$sourceNames

Sorted list of all the configuration object names in the source storage. The list is keyed by storage collection name. Type: array File core/lib/Drupal/Core/Config/StorageComparer.php, line 66 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code protected $sourceNames = array();

ConfigInstaller::installDefaultConfig

public ConfigInstaller::installDefaultConfig($type, $name) Installs the default configuration of a given extension. When an extension is installed, it searches all the default configuration directories for all other extensions to locate any configuration with its name prefix. For example, the Node module provides the frontpage view as a default configuration file: core/modules/node/config/install/views.view.frontpage.yml When the Views module is installed after the Node module is already enable