Error::decodeException

public static Error::decodeException($exception) Decodes an exception and retrieves the correct caller. Parameters \Exception|\Throwable $exception: The exception object that was thrown. Return value array An error in the format expected by _drupal_log_error(). File core/lib/Drupal/Core/Utility/Error.php, line 37 Class Error Drupal error utility class. Namespace Drupal\Core\Utility Code public static function decodeException($exception) { $message = $exception->getMessage();

template_preprocess_views_view_rss

template_preprocess_views_view_rss(&$variables) Prepares variables for RSS feed templates. Default template: views-view-rss.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 835 Preprocessors and helper functions to make theming easier. Code function template_preprocess_views_view_rss(&$variables) { $view = $variables['view']; $items = $variables['rows']

PermissionsHashGenerator::$privateKey

The private key service. Type: \Drupal\Core\PrivateKey File core/lib/Drupal/Core/Session/PermissionsHashGenerator.php, line 20 Class PermissionsHashGenerator Generates and caches the permissions hash for a user. Namespace Drupal\Core\Session Code protected $privateKey;

RouteBuilder::destruct

public RouteBuilder::destruct() Performs destruct operations. Overrides DestructableInterface::destruct File core/lib/Drupal/Core/Routing/RouteBuilder.php, line 213 Class RouteBuilder Managing class for rebuilding the router table. Namespace Drupal\Core\Routing Code public function destruct() { // Rebuild routes only once at the end of the request lifecycle to not // trigger multiple rebuilds and also make the page more responsive for the // user. $this->rebuildIfNeeded(); }

MenuLinkDefaultForm::extractFormValues

public MenuLinkDefaultForm::extractFormValues(array &$form, FormStateInterface $form_state) Extracts a plugin definition from form values. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The new plugin definition values taken from the form values. The plugin ID must be returned as part of the definition. Overrides MenuLinkFormInterface::extractFormValues F

Message::isPersonal

public Message::isPersonal() Returns TRUE if this is the personal contact form. Return value bool TRUE if the message bundle is personal. Overrides MessageInterface::isPersonal File core/modules/contact/src/Entity/Message.php, line 39 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function isPersonal() { return $this->bundle() == 'personal'; }

MetadataBubblingUrlGenerator::getContext

public MetadataBubblingUrlGenerator::getContext() File core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 60 Class MetadataBubblingUrlGenerator Decorator for the URL generator, which bubbles bubbleable URL metadata. Namespace Drupal\Core\Render Code public function getContext() { return $this->urlGenerator->getContext(); }

ThemeInstaller::install

public ThemeInstaller::install(array $theme_list, $install_dependencies = TRUE) Installs a given list of themes. Parameters array $theme_list: An array of theme names. bool $install_dependencies: (optional) If TRUE, dependencies will automatically be installed in the correct order. This incurs a significant performance cost, so use FALSE if you know $theme_list is already complete and in the correct order. Return value bool Whether any of the given themes have been installed. Throws \Drupal\

BanIpManager::$connection

The database connection used to check the IP against. Type: \Drupal\Core\Database\Connection File core/modules/ban/src/BanIpManager.php, line 17 Class BanIpManager Ban IP manager. Namespace Drupal\ban Code protected $connection;

Php::generate

public Php::generate() Generates a Universally Unique IDentifier (UUID). Return value A 16 byte integer represented as a hex string formatted with 4 hyphens. Overrides UuidInterface::generate File core/lib/Drupal/Component/Uuid/Php.php, line 18 Class Php Generates a UUID v4 (RFC 4122 section 4.4) using PHP code. Namespace Drupal\Component\Uuid Code public function generate() { // Obtain a random string of 32 hex characters. $hex = bin2hex(Crypt::randomBytes(16)); // The variabl