Cache::invalidateTags

public static Cache::invalidateTags(array $tags) Marks cache items from all bins with any of the specified tags as invalid. Parameters string[] $tags: The list of tags to invalidate cache items for. File core/lib/Drupal/Core/Cache/Cache.php, line 144 Class Cache Helper methods for cache. Namespace Drupal\Core\Cache Code public static function invalidateTags(array $tags) { \Drupal::service('cache_tags.invalidator')->invalidateTags($tags); }

Datetime::getHtml5DateFormat

protected static Datetime::getHtml5DateFormat($element) Retrieves the right format for a HTML5 date element. The format is important because these elements will not work with any other format. Parameters string $element: The $element to assess. Return value string Returns the right format for the date element, or the original format if this is not a HTML5 element. File core/lib/Drupal/Core/Datetime/Element/Datetime.php, line 392 Class Datetime Provides a datetime element. Namespace Dr

ContentTranslationHandler::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/content_translation/src/ContentTranslationHandler.php, line 47 Class ContentTranslationHandler Base class for content translation handlers. Namespace Drupal\content_translation Code protected $languageManager;

db_transaction

db_transaction($name = NULL, array $options = array()) Returns a new transaction object for the active database. Parameters string $name: Optional name of the transaction. array $options: An array of options to control how the transaction operates: target: The database target name. Return value \Drupal\Core\Database\Transaction A new Transaction object for this connection. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into you

RegisterAccessCheck

Access check for user registration routes. Hierarchy class \Drupal\user\Access\RegisterAccessCheck implements AccessInterface File core/modules/user/src/Access/RegisterAccessCheck.php, line 12 Namespace Drupal\user\Access Members Name Modifiers Type Description RegisterAccessCheck::access public function Checks access.

Node::isSticky

public Node::isSticky() Returns the node sticky status. Return value bool TRUE if the node is sticky. Overrides NodeInterface::isSticky File core/modules/node/src/Entity/Node.php, line 234 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function isSticky() { return (bool) $this->get('sticky')->value; }

UpdateFetcher::buildFetchUrl

public UpdateFetcher::buildFetchUrl(array $project, $site_key = '') Generates the URL to fetch information about project updates. This figures out the right URL to use, based on the project's .info.yml file and the global defaults. Appends optional query arguments when the site is configured to report usage stats. Parameters array $project: The array of project information from \Drupal\Update\UpdateManager::getProjects(). string $site_key: (optional) The anonymous site key hash. Defaults to an

UrlHelper::encodePath

public static UrlHelper::encodePath($path) Encodes a Drupal path for use in a URL. For aesthetic reasons slashes are not escaped. Parameters string $path: The Drupal path to encode. Return value string The encoded path. File core/lib/Drupal/Component/Utility/UrlHelper.php, line 193 Class UrlHelper Helper class URL based methods. Namespace Drupal\Component\Utility Code public static function encodePath($path) { return str_replace('%2F', '/', rawurlencode($path)); }

PathFormBase::$pathValidator

The path validator. Type: \Drupal\Core\Path\PathValidatorInterface File core/modules/path/src/Form/PathFormBase.php, line 45 Class PathFormBase Provides a base class for path add/edit forms. Namespace Drupal\path\Form Code protected $pathValidator;

ImageStyleStorage::clearReplacementId

public ImageStyleStorage::clearReplacementId($name) Clears a replacement ID from the storage. The method clears the value previously stored with ::setReplacementId(). Parameters string $name: The ID of the image style to be replaced. Overrides ImageStyleStorageInterface::clearReplacementId See also \Drupal\image\ImageStyleStorageInterface::setReplacementId() File core/modules/image/src/ImageStyleStorage.php, line 42 Class ImageStyleStorage Storage controller class for "image style" confi