DataType::$constraints

An array of validation constraints for this type. Type: array See also \Drupal\Core\TypedData\TypedDataManager::getConstraints(). File core/lib/Drupal/Core/TypedData/Annotation/DataType.php, line 102 Class DataType Defines a data type annotation object. Namespace Drupal\Core\TypedData\Annotation Code public $constraints;

Transliteration

Transliterate from Unicode to US-ASCII Transliteration is the process of translating individual non-US-ASCII characters into ASCII characters, which specifically does not transform non-printable and punctuation characters in any way. This process will always be both inexact and language-dependent. For instance, the character Ö (O with an umlaut) is commonly transliterated as O, but in German text, the convention would be to transliterate it as Oe or OE, depending on the context (beginning of a

SelectInterface::addExpression

public SelectInterface::addExpression($expression, $alias = NULL, $arguments = array()) Adds an expression to the list of "fields" to be SELECTed. An expression can be any arbitrary string that is valid SQL. That includes various functions, which may in some cases be database-dependent. This method makes no effort to correct for database-specific functions. Parameters $expression: The expression string. May contain placeholders. $alias: The alias for this expression. If not specified, one will

ContentEntityStorageBase::doPreSave

protected ContentEntityStorageBase::doPreSave(EntityInterface $entity) Performs presave entity processing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The saved entity. Return value int|string The processed entity identifier. Throws \Drupal\Core\Entity\EntityStorageException If the entity identifier is invalid. Overrides EntityStorageBase::doPreSave File core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 285 Class ContentEntityStorageBase Base class for content e

EntityViewsData::processViewsDataForUuid

protected EntityViewsData::processViewsDataForUuid($table, FieldDefinitionInterface $field_definition, array &$views_field, $field_column_name) Processes the views data for a UUID field. Parameters string $table: The table the field is added to. \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition. array $views_field: The views field data. string $field_column_name: The field column being processed. File core/modules/views/src/EntityViewsData.php, line 623

ConfigurableLanguageManager::loadLanguageTypesConfiguration

protected ConfigurableLanguageManager::loadLanguageTypesConfiguration() Retrieves language types from the configuration storage. Return value array An array of language type names. File core/modules/language/src/ConfigurableLanguageManager.php, line 169 Class ConfigurableLanguageManager Overrides default LanguageManager to provide configured languages. Namespace Drupal\language Code protected function loadLanguageTypesConfiguration() { if (!$this->languageTypes) { $this->l

ContentEntityBase::preSaveRevision

public ContentEntityBase::preSaveRevision(EntityStorageInterface $storage, \stdClass $record) Acts on a revision before it gets saved. Parameters EntityStorageInterface $storage: The entity storage object. \stdClass $record: The revision object. Overrides RevisionableInterface::preSaveRevision File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 365 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code

CacheContextsManager

Converts cache context tokens into cache keys. Uses cache context services (services tagged with 'cache.context', and whose service ID has the 'cache_context.' prefix) to dynamically generate cache keys based on the request context, thus allowing developers to express the state by which should varied (the current URL, language, and so on). Note that this maps exactly to HTTP's Vary header semantics: @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.44 Hierarchy class \Drupal\Co

drupal_rmdir

drupal_rmdir($uri, $context = NULL) Removes a directory. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::rmdir(). Related topics File interface Common file handling functions. File core/includes/file.inc, line 1168 API for handling file uploads and server file management. Code function drupal_rmdir($uri, $context = NULL) { return \Drupal::service('file_system')->rmdir($uri, $context); }

user_load_by_mail

user_load_by_mail($mail) Fetches a user object by email address. Parameters string $mail: String with the account's email address. Return value object|bool A fully-loaded $user object upon successful user load or FALSE if user cannot be loaded. See also \Drupal\user\Entity\User::loadMultiple() File core/modules/user/user.module, line 234 Enables the user registration and login system. Code function user_load_by_mail($mail) { $users = \Drupal::entityTypeManager()->getStorage('user')