hook_menu_links_discovered_alter

hook_menu_links_discovered_alter(&$links) Alters all the menu links discovered by the menu link plugin manager. Parameters array $links: The link definitions to be altered. Return value array An array of discovered menu links. Each link has a key that is the machine name, which must be unique. By default, use the route name as the machine name. In cases where multiple links use the same route name, such as two links to the same page in different menus, or two links using the same route na

Database::openConnection

final protected static Database::openConnection($key, $target) Opens a connection to the server specified by the given key and target. Parameters string $key: The database connection key, as specified in settings.php. The default is "default". string $target: The database target to open. Throws \Drupal\Core\Database\ConnectionNotDefinedException \Drupal\Core\Database\DriverNotSpecifiedException File core/lib/Drupal/Core/Database/Database.php, line 357 Class Database Primary front-control

UpdateReady::getFormId

public UpdateReady::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/update/src/Form/UpdateReady.php, line 69 Class UpdateReady Configure update settings for this site. Namespace Drupal\update\Form Code public function getFormId() { return 'update_manager_update_ready_form'; }

UpdateManagerInstall::$sitePath

The site path. Type: string File core/modules/update/src/Form/UpdateManagerInstall.php, line 37 Class UpdateManagerInstall Configure update settings for this site. Namespace Drupal\update\Form Code protected $sitePath;

EntityTypeInfo::$moderationInfo

The moderation information service. Type: \Drupal\content_moderation\ModerationInformationInterface File core/modules/content_moderation/src/EntityTypeInfo.php, line 43 Class EntityTypeInfo Manipulates entity type information. Namespace Drupal\content_moderation Code protected $moderationInfo;

_color_render_images

_color_render_images($theme, &$info, &$paths, $palette) Renders images that match a given palette. File core/modules/color/color.module, line 593 Allows users to change the color scheme of themes. Code function _color_render_images($theme, &$info, &$paths, $palette) { // Prepare template image. $source = $paths['source'] . '/' . $info['base_image']; $source = imagecreatefrompng($source); $width = imagesx($source); $height = imagesy($source); // Prepare target buff

TwigExtension::bubbleArgMetadata

protected TwigExtension::bubbleArgMetadata($arg) Bubbles Twig template argument's cacheability & attachment metadata. For example: a generated link or generated URL object is passed as a Twig template argument, and its bubbleable metadata must be bubbled. Parameters mixed $arg: A Twig template argument that is about to be printed. See also \Drupal\Core\GeneratedLink \Drupal\Core\GeneratedUrl \Drupal\Core\Theme\ThemeManager::render() \Drupal\Core\Render\RendererInterface::render() File cor

EntityType::getAccessControlClass

public EntityType::getAccessControlClass() Gets the access control class. Return value string The class for this entity type's access control. Overrides EntityTypeInterface::getAccessControlClass File core/lib/Drupal/Core/Entity/EntityType.php, line 581 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getAccessControlClass() { return $this->getHandlerClass('access'); }

DefaultRequestPolicy::__construct

public DefaultRequestPolicy::__construct() Constructs the default Dynamic Page Cache request policy. File core/modules/dynamic_page_cache/src/PageCache/RequestPolicy/DefaultRequestPolicy.php, line 20 Class DefaultRequestPolicy The default Dynamic Page Cache request policy. Namespace Drupal\dynamic_page_cache\PageCache\RequestPolicy Code public function __construct() { $this->addPolicy(new CommandLineOrUnsafeMethod()); }

ThemeHandlerInterface::uninstall

public ThemeHandlerInterface::uninstall(array $theme_list) Uninstalls a given list of themes. Uninstalling a theme removes all related configuration (like blocks) and invokes the 'themes_uninstalled' hook. Parameters array $theme_list: The themes to uninstall. Throws \InvalidArgumentException Thrown when you uninstall an not installed theme. Deprecated in Drupal 8.0.x-dev and will be removed before Drupal 9.0.0. Use the theme_installer service instead. See also hook_themes_uninstalled() \