_color_hue2rgb

_color_hue2rgb($m1, $m2, $h) Helper function for _color_hsl2rgb(). File core/modules/color/color.module, line 797 Allows users to change the color scheme of themes. Code function _color_hue2rgb($m1, $m2, $h) { $h = ($h < 0) ? $h + 1 : (($h > 1) ? $h - 1 : $h); if ($h * 6 < 1) { return $m1 + ($m2 - $m1) * $h * 6; } if ($h * 2 < 1) { return $m2; } if ($h * 3 < 2) { return $m1 + ($m2 - $m1) * (0.66666 - $h) * 6; } return $m1; }

BigPipeStrategy::doProcessPlaceholders

protected BigPipeStrategy::doProcessPlaceholders(array $placeholders) Transforms placeholders to BigPipe placeholders, either no-JS or JS. Parameters array $placeholders: The placeholders to process. Return value array The BigPipe placeholders. File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 136 Class BigPipeStrategy Defines the BigPipe placeholder strategy, to send HTML in chunks. Namespace Drupal\big_pipe\Render\Placeholder Code protected function doProc

BlockAccessControlHandler::mergeCacheabilityFromConditions

protected BlockAccessControlHandler::mergeCacheabilityFromConditions(AccessResult $access, array $conditions) Merges cacheable metadata from conditions onto the access result object. Parameters \Drupal\Core\Access\AccessResult $access: The access result object. \Drupal\Core\Condition\ConditionInterface[] $conditions: List of visibility conditions. File core/modules/block/src/BlockAccessControlHandler.php, line 161 Class BlockAccessControlHandler Defines the access control handler for the

FieldConfigListBuilder::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/field_ui/src/FieldConfigListBuilder.php, line 39 Class FieldConfigListBuilder Provides lists of field config entities. Namespace Drupal\field_ui Code protected $entityManager;

Updater::prepareInstallDirectory

public Updater::prepareInstallDirectory(&$filetransfer, $directory) Makes sure the installation parent directory exists and is writable. Parameters \Drupal\Core\FileTransfer\FileTransfer $filetransfer: Object which is a child of FileTransfer. string $directory: The installation directory to prepare. Throws \Drupal\Core\Updater\UpdaterException File core/lib/Drupal/Core/Updater/Updater.php, line 304 Class Updater Defines the base class for Updaters used in Drupal. Namespace Drupal\

ViewsRow::$short_title

(optional) The short title used in the views UI. Type: \Drupal\Core\Annotation\Translation Related topics Annotation for translatable text Describes how to put translatable UI text into annotations. File core/modules/views/src/Annotation/ViewsRow.php, line 39 Class ViewsRow Defines a Plugin annotation object for views row plugins. Namespace Drupal\views\Annotation Code public $short_title = '';

UpdateBuildIdCommand::__construct

public UpdateBuildIdCommand::__construct($old, $new) Constructs a UpdateBuildIdCommand object. Parameters string $old: The old build_id. string $new: The new build_id. File core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php, line 44 Class UpdateBuildIdCommand AJAX command for updating the value of a hidden form_build_id input element on a form. It requires the form passed in to have keys for both the old build ID in #build_id_old and the new build ID in #build_id. Namespace Drupal\Core

ViewEntityInterface::duplicateDisplayAsType

public ViewEntityInterface::duplicateDisplayAsType($old_display_id, $new_display_type) Duplicates an existing display into a new display type. For example clone to display a page display as a block display. Parameters string $old_display_id: The origin of the duplicated display. string $new_display_type: The display type of the new display. Return value string The display ID of the new display. File core/modules/views/src/ViewEntityInterface.php, line 49 Class ViewEntityInterface Defines

Image::resize

public Image::resize($width, $height) Resizes an image to the given dimensions (ignoring aspect ratio). Parameters int $width: The target width, in pixels. int $height: The target height, in pixels. Return value bool TRUE on success, FALSE on failure. Overrides ImageInterface::resize File core/lib/Drupal/Core/Image/Image.php, line 177 Class Image Defines an image object to represent an image file. Namespace Drupal\Core\Image Code public function resize($width, $height) { return $th

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(); }