CommentStorage::$currentUser

The current user. Type: \Drupal\Core\Session\AccountInterface File core/modules/comment/src/CommentStorage.php, line 29 Class CommentStorage Defines the storage handler class for comments. Namespace Drupal\comment Code protected $currentUser;

UpdateManagerInterface

Manages project update information. Hierarchy interface \Drupal\update\UpdateManagerInterface File core/modules/update/src/UpdateManagerInterface.php, line 8 Namespace Drupal\update Members Name Modifiers Type Description UpdateManagerInterface::fetchDataBatch public function Processes a step in batch for fetching available update data. UpdateManagerInterface::getProjects public function Fetches an array of installed and enabled projects. UpdateManagerInterface

FileTransfer::isFile

abstract public FileTransfer::isFile($path) Checks if a particular path is a file (not a directory). Parameters string $path: The path to check. Return value bool TRUE if the specified path is a file, FALSE otherwise. File core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 340 Class FileTransfer Defines the base FileTransfer class. Namespace Drupal\Core\FileTransfer Code abstract public function isFile($path);

user_schema

user_schema() Implements hook_schema(). File core/modules/user/user.install, line 11 Install, update and uninstall functions for the user module. Code function user_schema() { $schema['users_data'] = array( 'description' => 'Stores module data as key/value pairs per user.', 'fields' => array( 'uid' => array( 'description' => 'Primary key: {users}.uid for user.', 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE,

Url::toString

public Url::toString($collect_bubbleable_metadata = FALSE) Generates the string URL representation for this Url object. For an external URL, the string will contain the input plus any query string or fragment specified by the options array. If this Url object was constructed from a Drupal route or from an internal URI (URIs using the internal:, base:, or entity: schemes), the returned string will either be a relative URL like /node/1 or an absolute URL like http://example.com/node/1 depending o

DrupalKernel::handleException

protected DrupalKernel::handleException(\Exception $e, $request, $type) Converts an exception into a response. Parameters \Exception $e: An exception Request $request: A Request instance int $type: The type of the request (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) Return value Response A Response instance Throws \Exception If the passed in exception cannot be turned into a response. File core/lib/Drupal/Core/DrupalKernel.php, line 686 Class DrupalKer

EntityStorageBase::getQuery

public EntityStorageBase::getQuery($conjunction = 'AND') Gets an entity query instance. Parameters string $conjunction: (optional) The logical operator for the query, either: AND: all of the conditions on the query need to match. OR: at least one of the conditions on the query need to match. Return value \Drupal\Core\Entity\Query\QueryInterface The query instance. Overrides EntityStorageInterface::getQuery See also \Drupal\Core\Entity\EntityStorageBase::getQueryServiceName() File core/li

Random::sentences

public Random::sentences($min_word_count, $capitalize = FALSE) Generates sentences Latin words, often used as placeholder text. Parameters int $min_word_count: The minimum number of words in the return string. Total word count can slightly exceed provided this value in order to deliver sentences of random length. bool $capitalize: Uppercase all the words in the string. Return value string Nonsense latin words which form sentence(s). File core/lib/Drupal/Component/Utility/Random.php, line 192

WidgetBaseInterface::form

public WidgetBaseInterface::form(FieldItemListInterface $items, array &$form, FormStateInterface $form_state, $get_delta = NULL) Creates a form element for a field. If the entity associated with the form is new (i.e., $entity->isNew() is TRUE), the 'default value', if any, is pre-populated. Also allows other modules to alter the form element by implementing their own hooks. Parameters \Drupal\Core\Field\FieldItemListInterface $items: An array of the field values. When creating a new ent

EntityType::getPluralLabel

public EntityType::getPluralLabel() Gets the plural label of the entity type. Return value string The plural label. Overrides EntityTypeInterface::getPluralLabel File core/lib/Drupal/Core/Entity/EntityType.php, line 756 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getPluralLabel() { if (empty($this->label_plural)) { $lowercase_label = $this->getLowercaseLabel(); $this->label_plural