DefaultTableMapping::setExtraColumns

public DefaultTableMapping::setExtraColumns($table_name, array $column_names) Adds a extra columns for a table to the table mapping. Parameters string $table_name: The name of table to add the extra columns for. string[] $column_names: The list of column names. Return value $this File core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 258 Class DefaultTableMapping Defines a default table mapping class. Namespace Drupal\Core\Entity\Sql Code public function setExtraColumns($

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')

FeedDeleteForm::getDeletionMessage

protected FeedDeleteForm::getDeletionMessage() Overrides ContentEntityDeleteForm::getDeletionMessage File core/modules/aggregator/src/Form/FeedDeleteForm.php, line 30 Class FeedDeleteForm Provides a form for deleting a feed. Namespace Drupal\aggregator\Form Code protected function getDeletionMessage() { return $this->t('The feed %label has been deleted.', array( '%label' => $this->entity->label(), )); }

ArchiverInterface

Defines the common interface for all Archiver classes. Hierarchy interface \Drupal\Core\Archiver\ArchiverInterface See also \Drupal\Core\Archiver\ArchiverManager \Drupal\Core\Archiver\Annotation\Archiver Plugin API File core/lib/Drupal/Core/Archiver/ArchiverInterface.php, line 12 Namespace Drupal\Core\Archiver Members Name Modifiers Type Description ArchiverInterface::add public function Adds the specified file or directory to the archive. ArchiverInterface::extract

FormState::$always_process

If TRUE and the method is GET, a form_id is not necessary. This property is uncacheable. Type: bool File core/lib/Drupal/Core/Form/FormState.php, line 263 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected $always_process;

RoleStorage

Controller class for user roles. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterfaceclass \Drupal\user\RoleStorage implements RoleStorageInterface File core/modules/user/src/RoleStorage.php, line 10 Name

SystemController::create

public static SystemController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service

Variable::export

public static Variable::export($var, $prefix = '') Drupal-friendly var_export(). Parameters mixed $var: The variable to export. string $prefix: A prefix that will be added at the beginning of every lines of the output. Return value string The variable exported in a way compatible to Drupal's coding standards. File core/lib/Drupal/Component/Utility/Variable.php, line 23 Class Variable Provides helpers for dealing with variables. Namespace Drupal\Component\Utility Code public static fu