UserController::$userStorage

The user storage. Type: \Drupal\user\UserStorageInterface File core/modules/user/src/Controller/UserController.php, line 35 Class UserController Controller routines for user routes. Namespace Drupal\user\Controller Code protected $userStorage;

ConfigSync::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/config/src/Form/ConfigSync.php, line 81 Class ConfigSync Construct the storage changes in a configuration synchronization form. Namespace Drupal\config\Form Code protected $moduleHandler;

ImageStyle::buildUri

public ImageStyle::buildUri($uri) Returns the URI of this image when using this style. The path returned by this function may not exist. The default generation method only creates images when they are requested by a user's browser. Modules may implement this method to decide where to place derivatives. Parameters string $uri: The URI or path to the original image. Return value string The URI to the image derivative for this style. Overrides ImageStyleInterface::buildUri File core/modules/imag

OpmlFeedAdd::validateForm

public OpmlFeedAdd::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/aggregator/src/Form/OpmlFeedAdd.php, line 100 Class OpmlFeedAdd Imports feeds from OPML. Namespace Drupal\aggregator\Form Code public function validateForm(array &

ModuleInstallerInterface::install

public ModuleInstallerInterface::install(array $module_list, $enable_dependencies = TRUE) Installs a given list of modules. Order of events: Gather and add module dependencies to $module_list (if applicable). For each module that is being installed: Invoke hook_module_preinstall(). Install module schema and update system registries and caches. Invoke hook_install() and add it to the list of installed modules. Invoke hook_modules_installed(). To install test modules add $settings['extension_d

Schema::addUniqueKey

public Schema::addUniqueKey($table, $name, $fields) Add a unique key. Parameters $table: The table to be altered. $name: The name of the key. $fields: An array of field names. Throws \Drupal\Core\Database\SchemaObjectDoesNotExistException If the specified table doesn't exist. \Drupal\Core\Database\SchemaObjectExistsException If the specified table already has a key by that name. Overrides Schema::addUniqueKey File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 634 Class Sche

Module::isInstalled

public Module::isInstalled() Checks if the project is installed. Return value bool Overrides UpdaterInterface::isInstalled File core/lib/Drupal/Core/Updater/Module.php, line 49 Class Module Defines a class for updating modules using Drupal\Core\FileTransfer\FileTransfer classes via authorize.php. Namespace Drupal\Core\Updater Code public function isInstalled() { // Check if the module exists in the file system, regardless of whether it // is enabled or not. $modules = \Drupal::s

ViewUI::getThirdPartySettings

public ViewUI::getThirdPartySettings($module) Gets all third-party settings of a given module. Parameters string $module: The module providing the third-party settings. Return value array An array of key-value pairs. Overrides ThirdPartySettingsInterface::getThirdPartySettings File core/modules/views_ui/src/ViewUI.php, line 1283 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function getThirdPartySettings($module) { return $this->storage

BlockForm::form

public BlockForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/block/src/BlockForm.php, line 123 Class BlockForm Provides form for block instance forms. Namespace Drupal\block Code public function form(array $form, FormStateInterface $form_state) { $entity = $this->entity; // Store theme se

QueryBase::pager

public QueryBase::pager($limit = 10, $element = NULL) Enables a pager for the query. Parameters $limit: An integer specifying the number of elements per page. If passed a false value (FALSE, 0, NULL), the pager is disabled. $element: An optional integer to distinguish between multiple pagers on one page. If not provided, one is automatically calculated. Return value \Drupal\Core\Entity\Query\QueryInterface The called object. Overrides QueryInterface::pager File core/lib/Drupal/Core/Entity/Que