Connection::query

public Connection::query($query, array $args = array(), $options = array()) Executes a query string against the database. This method provides a central handler for the actual execution of every query. All queries executed by Drupal are executed as PDO prepared statements. Parameters string|\Drupal\Core\Database\StatementInterface $query: The query to execute. In most cases this will be a string containing an SQL query with placeholders. An already-prepared instance of StatementInterface may a

CommentAdminOverview::buildForm

public CommentAdminOverview::buildForm(array $form, FormStateInterface $form_state, $type = 'new') Form constructor for the comment overview administration form. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $type: The type of the overview form ('approval' or 'new'). Return value array The form structure. Overrides FormInterface::buildForm File core/modules/comment/src/

menu_ui_form_node_form_alter

menu_ui_form_node_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. Adds menu item fields to the node form. See also menu_ui_form_node_form_submit() File core/modules/menu_ui/menu_ui.module, line 266 Allows administrators to customize the site's navigation menus. Code function menu_ui_form_node_form_alter(&$form, FormStateInterface $form_state) { // Generate a list of possible parents (not including this link or

ThemeHandler

Default theme handler using the config system to store installation statuses. Hierarchy class \Drupal\Core\Extension\ThemeHandler implements ThemeHandlerInterface File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 11 Namespace Drupal\Core\Extension Members Name Modifiers Type Description ThemeHandler::$configFactory protected property The config factory to get the installed themes. ThemeHandler::$configInstaller protected property The config installer to

MemoryBackend::set

public MemoryBackend::set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) Stores data in the persistent cache. Core cache implementations set the created time on cache item with microtime(TRUE) rather than REQUEST_TIME_FLOAT, because the created time of cache items should match when they are created, not when the request started. Apart from being more accurate, this increases the chance an item will legitimately be considered valid. Parameters string $cid: The cache ID of the d

ConfigTranslationEditForm

Defines a form for editing configuration translations. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\config_translation\Form\ConfigTranslationFormBase implements BaseFormIdInterfaceclass \Drupal\config_translation\Form\ConfigTranslationEditForm File core/modules/config_translation/src/F

RelationLinkManagerInterface

Hierarchy interface \Drupal\rest\LinkManager\ConfigurableLinkManagerInterfaceinterface \Drupal\rest\LinkManager\RelationLinkManagerInterface File core/modules/rest/src/LinkManager/RelationLinkManagerInterface.php, line 5 Namespace Drupal\rest\LinkManager Members Name Modifiers Type Description ConfigurableLinkManagerInterface::setLinkDomain public function Sets the link domain used in constructing link URIs. RelationLinkManagerInterface::getRelationInternalIds publi

FieldStorageConfig::$type

The field type. Example: text, integer. Type: string File core/modules/field/src/Entity/FieldStorageConfig.php, line 91 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code protected $type;

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;

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