RouteProviderLazyBuilder::getRoutesCount

public RouteProviderLazyBuilder::getRoutesCount() Determines the total amount of routes. Return value int Overrides PagedRouteProviderInterface::getRoutesCount File core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 121 Class RouteProviderLazyBuilder A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code public function getRoutesCount() { return $this->getRouteProvider()->getRoutesCount(); }

AlertCommand

AJAX command for a javascript alert box. Hierarchy class \Drupal\Core\Ajax\AlertCommand implements CommandInterface Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/AlertCommand.php, line 10 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description AlertCommand::$text protected property The text to be displayed in the alert box. AlertCommand::render public function Implements Drupal\Core\Ajax\CommandInterface:rende

PoStreamInterface::close

public PoStreamInterface::close() Close the stream. File core/lib/Drupal/Component/Gettext/PoStreamInterface.php, line 21 Class PoStreamInterface Common functions for file/stream based PO readers/writers. Namespace Drupal\Component\Gettext Code public function close();

hook_views_analyze

hook_views_analyze(Drupal\views\ViewExecutable $view) Analyze a view to provide warnings about its configuration. Parameters \Drupal\views\ViewExecutable $view: The view being executed. Return value array Array of warning messages built by Analyzer::formatMessage to be displayed to the user following analysis of the view. Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/views/views.api.php, line 95 Describes hooks and plugins provided by the Vi

VocabularyResetForm::create

public static VocabularyResetForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The serv

FormattedDateDiff::getCacheMaxAge

public FormattedDateDiff::getCacheMaxAge() The maximum age for which this object may be cached. Return value int The maximum time in seconds that this object may be cached. Overrides UnchangingCacheableDependencyTrait::getCacheMaxAge File core/lib/Drupal/Core/Datetime/FormattedDateDiff.php, line 56 Class FormattedDateDiff Contains a formatted time difference. Namespace Drupal\Core\Datetime Code public function getCacheMaxAge() { return $this->maxAge; }

_color_rgb2hsl

_color_rgb2hsl($rgb) Converts an RGB triplet to HSL. File core/modules/color/color.module, line 809 Allows users to change the color scheme of themes. Code function _color_rgb2hsl($rgb) { $r = $rgb[0]; $g = $rgb[1]; $b = $rgb[2]; $min = min($r, min($g, $b)); $max = max($r, max($g, $b)); $delta = $max - $min; $l = ($min + $max) / 2; $s = 0; if ($l > 0 && $l < 1) { $s = $delta / ($l < 0.5 ? (2 * $l) : (2 - 2 * $l)); } $h = 0; if ($delta > 0) {

BigPipeStrategy::generateBigPipePlaceholderId

protected static BigPipeStrategy::generateBigPipePlaceholderId($original_placeholder, array $placeholder_render_array) Generates a BigPipe placeholder ID. Parameters string $original_placeholder: The original placeholder. array $placeholder_render_array: The render array for a placeholder. Return value string The generated BigPipe placeholder ID. File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 257 Class BigPipeStrategy Defines the BigPipe placeholder strategy,

Display::__construct

public Display::__construct($type = NULL) Constructs a new Display object. File core/modules/views_ui/src/Form/Ajax/Display.php, line 16 Class Display Provides a form for editing the Views display. Namespace Drupal\views_ui\Form\Ajax Code public function __construct($type = NULL) { $this->setType($type); }

AliasManager::$cache

Cache backend service. Type: \Drupal\Core\Cache\CacheBackendInterface; File core/lib/Drupal/Core/Path/AliasManager.php, line 27 Class AliasManager The default alias manager implementation. Namespace Drupal\Core\Path Code protected $cache;