AlreadyInstalledException

Exception thrown if Drupal is installed already. Hierarchy class \Drupal\Core\Installer\Exception\InstallerException extends \RuntimeException uses StringTranslationTraitclass \Drupal\Core\Installer\Exception\AlreadyInstalledException File core/lib/Drupal/Core/Installer/Exception/AlreadyInstalledException.php, line 10 Namespace Drupal\Core\Installer\Exception Members Name Modifiers Type Description AlreadyInstalledException::__construct public function Constructs a new

AlreadyInstalledException::__construct

public AlreadyInstalledException::__construct(TranslationInterface $string_translation) Constructs a new "already installed" exception. Parameters \Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation manager. Overrides InstallerException::__construct File core/lib/Drupal/Core/Installer/Exception/AlreadyInstalledException.php, line 18 Class AlreadyInstalledException Exception thrown if Drupal is installed already. Namespace Drupal\Core\Installe

AllowedTagsXssTrait::fieldFilterXss

public AllowedTagsXssTrait::fieldFilterXss($string) Filters an HTML string to prevent XSS vulnerabilities. Like \Drupal\Component\Utility\Xss::filterAdmin(), but with a shorter list of allowed tags. Used for items entered by administrators, like field descriptions, allowed values, where some (mainly inline) mark-up may be desired (so \Drupal\Component\Utility\Html::escape() is not acceptable). Parameters string $string: The string with raw HTML in it. Return value \Drupal\Component\Utility\Sa

AllowToolbarPath

Cache policy for the toolbar page cache service. This policy allows caching of requests directed to /toolbar/subtrees/{hash} even for authenticated users. Hierarchy class \Drupal\toolbar\PageCache\AllowToolbarPath implements RequestPolicyInterface File core/modules/toolbar/src/PageCache/AllowToolbarPath.php, line 14 Namespace Drupal\toolbar\PageCache Members Name Modifiers Type Description AllowToolbarPath::check public function Determines whether delivery of a cached pa

AllowToolbarPath::check

public AllowToolbarPath::check(Request $request) Determines whether delivery of a cached page should be attempted. Note that the request-policy check runs very early. In particular it is not possible to determine the logged in user. Also the current route match is not yet present when the check runs. Therefore, request-policy checks need to be designed in a way such that they do not depend on any other service and only take in account the information present on the incoming request. When matchi

AllowedTagsXssTrait::displayAllowedTags

public AllowedTagsXssTrait::displayAllowedTags() Returns a human-readable list of allowed tags for display in help texts. File core/lib/Drupal/Core/Field/AllowedTagsXssTrait.php, line 46 Class AllowedTagsXssTrait Useful methods when dealing with displaying allowed tags. Namespace Drupal\Core\Field Code public function displayAllowedTags() { return FieldFilteredMarkup::displayAllowedTags(); }

AliasWhitelist::__construct

public AliasWhitelist::__construct($cid, CacheBackendInterface $cache, LockBackendInterface $lock, StateInterface $state, AliasStorageInterface $alias_storage) Constructs an AliasWhitelist object. Parameters string $cid: The cache id to use. \Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend. \Drupal\Core\Lock\LockBackendInterface $lock: The lock backend. \Drupal\Core\State\StateInterface $state: The state keyvalue store. \Drupal\Core\Path\AliasStorageInterface $alias_storage:

AllowedTagsXssTrait

Useful methods when dealing with displaying allowed tags. Hierarchy trait \Drupal\Core\Field\AllowedTagsXssTrait Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.0. Use \Drupal\Core\Field\FieldFilteredMarkup instead. See also \Drupal\Core\Field\FieldFilteredMarkup File core/lib/Drupal/Core/Field/AllowedTagsXssTrait.php, line 13 Namespace Drupal\Core\Field Members Name Modifiers Type Description AllowedTagsXssTrait::allowedTags public function Returns a l

AllowedTagsXssTrait::allowedTags

public AllowedTagsXssTrait::allowedTags() Returns a list of tags allowed by AllowedTagsXssTrait::fieldFilterXss(). File core/lib/Drupal/Core/Field/AllowedTagsXssTrait.php, line 39 Class AllowedTagsXssTrait Useful methods when dealing with displaying allowed tags. Namespace Drupal\Core\Field Code public function allowedTags() { return FieldFilteredMarkup::allowedTags(); }

AliasWhitelistInterface

Cache the alias whitelist. The whitelist contains the first element of the router paths of all aliases. For example, if /node/12345 has an alias then "node" is added to the whitelist. This optimization allows skipping the lookup for every /user/{user} path if "user" is not in the whitelist. Hierarchy interface \Drupal\Core\Cache\CacheCollectorInterfaceinterface \Drupal\Core\Path\AliasWhitelistInterface File core/lib/Drupal/Core/Path/AliasWhitelistInterface.php, line 15 Namespace Drupal\