UpdaterInterface::postUpdate

public UpdaterInterface::postUpdate() Actions to run after an update has occurred. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 66 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public function postUpdate();

Password

Provides a form element for entering a password, with hidden text. Usage example: $form['pass'] = array( '#type' => 'password', '#title' => $this->t('Password'), '#size' => 25, ); Plugin annotation @FormElement("password") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderEle

PhpBackend

Defines a PHP cache implementation. Stores cache items in a PHP file using a storage that implements Drupal\Component\PhpStorage\PhpStorageInterface. This is fast because of PHP's opcode caching mechanism. Once a file's content is stored in PHP's opcode cache, including it doesn't require reading the contents from a filesystem. Instead, PHP will use the already compiled opcodes stored in memory. Hierarchy class \Drupal\Core\Cache\PhpBackend implements CacheBackendInterface Related topics Cac

ConfigInstaller::$typedConfig

The typed configuration manager. Type: \Drupal\Core\Config\TypedConfigManagerInterface File core/lib/Drupal/Core/Config/ConfigInstaller.php, line 33 Class ConfigInstaller Namespace Drupal\Core\Config Code protected $typedConfig;

ExtensionDiscovery::scan

public ExtensionDiscovery::scan($type, $include_tests = NULL) Discovers available extensions of a given type. Finds all extensions (modules, themes, etc) that exist on the site. It searches in several locations. For instance, to discover all available modules: $listing = new ExtensionDiscovery(\Drupal::root()); $modules = $listing->scan('module'); The following directories will be searched (in the order stated): the core directory; i.e., /core the installation profile directory; e.g., /cor

ImportForm::$languageManager

The configurable language manager. Type: \Drupal\language\ConfigurableLanguageManagerInterface File core/modules/locale/src/Form/ImportForm.php, line 36 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code protected $languageManager;

BlockContentTypeDeleteForm::$queryFactory

The query factory to create entity queries. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/block_content/src/Form/BlockContentTypeDeleteForm.php, line 20 Class BlockContentTypeDeleteForm Provides a confirmation form for deleting a custom block type entity. Namespace Drupal\block_content\Form Code public $queryFactory;

drupal_flush_all_caches

drupal_flush_all_caches() Flushes all persistent caches, resets all variables, and rebuilds all data structures. At times, it is necessary to re-initialize the entire system to account for changed or new code. This function: Clears all persistent caches: The bootstrap cache bin containing base system, module system, and theme system information. The common 'default' cache bin containing arbitrary caches. The page cache. The URL alias path cache. Resets all static variables that have been defin

SysLog::$parser

The message's placeholders parser. Type: \Drupal\Core\Logger\LogMessageParserInterface File core/modules/syslog/src/Logger/SysLog.php, line 28 Class SysLog Redirects logging messages to syslog. Namespace Drupal\syslog\Logger Code protected $parser;

CommentStorage::loadThread

public CommentStorage::loadThread(EntityInterface $entity, $field_name, $mode, $comments_per_page = 0, $pager_id = 0) To display threaded comments in the correct order we keep a 'thread' field and order by that value. This field keeps this data in a way which is easy to update and convenient to use. A "thread" value starts at "1". If we add a child (A) to this comment, we assign it a "thread" = "1.1". A child of (A) will have "1.1.1". Next brother of (A) will get "1.2". Next brother of the par