user_load

user_load($uid, $reset = FALSE) Loads a user object. Parameters int $uid: Integer specifying the user ID to load. bool $reset: TRUE to reset the internal cache and load from the database; FALSE (default) to load from the internal cache, if set. Return value \Drupal\user\UserInterface A fully-loaded user object upon successful user load, or NULL if the user cannot be loaded. Deprecated in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\user\Entity\User::load(). See also \Drupal\

EntityController::addTitle

public EntityController::addTitle($entity_type_id) Provides a generic add title callback for an entity type. Parameters string $entity_type_id: The entity type ID. Return value string The title for the entity add page. File core/lib/Drupal/Core/Entity/Controller/EntityController.php, line 181 Class EntityController Provides the add-page and title callbacks for entities. Namespace Drupal\Core\Entity\Controller Code public function addTitle($entity_type_id) { $entity_type = $this->

LocaleConfigSubscriber::saveCustomizedTranslation

protected LocaleConfigSubscriber::saveCustomizedTranslation($name, $source, $context, $new_translation, $langcode) Saves a translation string and marks it as customized. Parameters string $name: The configuration name. string $source: The source string value. string $context: The source string context. string $new_translation: The translation string. string $langcode: The language code of the translation. File core/modules/locale/src/LocaleConfigSubscriber.php, line 208 Class LocaleConfigS

_batch_page

_batch_page(Request $request) Renders the batch processing page based on the current state of the batch. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. See also _batch_shutdown() File core/includes/batch.inc, line 34 Batch processing API for processes to run in multiple HTTP requests. Code function _batch_page(Request $request) { $batch = &batch_get(); if (!($request_id = $request->query->get('id'))) { return FALSE; } // Re

EntityFormDisplayEditForm::getDisplayModesLink

protected EntityFormDisplayEditForm::getDisplayModesLink() Returns a link to the form or view mode admin page. Return value array An array of a form element to be rendered as a link. Overrides EntityDisplayFormBase::getDisplayModesLink File core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php, line 81 Class EntityFormDisplayEditForm Edit form for the EntityFormDisplay entity type. Namespace Drupal\field_ui\Form Code protected function getDisplayModesLink() { return [ '#t

Query::$connection

The connection object on which to run this query. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Database/Query/Query.php, line 21 Class Query Base class for query builders. Namespace Drupal\Core\Database\Query Code protected $connection;

locale_translation_download_source

locale_translation_download_source($source_file, $directory = 'temporary://') Downloads a translation file from a remote server. Parameters object $source_file: Source file object with at least: "uri": uri to download the file from. "project": Project name. "langcode": Translation language. "version": Project version. "filename": File name. string $directory: Directory where the downloaded file will be saved. Defaults to the temporary file path. Return value object File object if downl

EntityViewDisplayEditForm::thirdPartySettingsForm

protected EntityViewDisplayEditForm::thirdPartySettingsForm(PluginSettingsInterface $plugin, FieldDefinitionInterface $field_definition, array $form, FormStateInterface $form_state) Adds the widget or formatter third party settings forms. Parameters \Drupal\Core\Field\PluginSettingsInterface $plugin: The widget or formatter. \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition. array $form: The (entire) configuration form array. \Drupal\Core\Form\FormStateInterfa

ViewUI::disable

public ViewUI::disable() Disables the configuration entity. Return value $this Overrides ConfigEntityInterface::disable File core/modules/views_ui/src/ViewUI.php, line 1062 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function disable() { return $this->storage->disable(); }

ContentTranslationHandlerInterface::getTranslationAccess

public ContentTranslationHandlerInterface::getTranslationAccess(EntityInterface $entity, $op) Checks if the user can perform the given operation on translations of the wrapped entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity whose translation has to be accessed. $op: The operation to be performed on the translation. Possible values are: "create" "update" "delete" Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/content_tra