NegotiationConfigureForm::create

public static NegotiationConfigureForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The

Database abstraction layer

Allow the use of different database servers using the same code base. Overview Drupal's database abstraction layer provides a unified database query API that can query different underlying databases. It is built upon PHP's PDO (PHP Data Objects) database API, and inherits much of its syntax and semantics. Besides providing a unified API for database queries, the database abstraction layer also provides a structured way to construct complex queries, and it protects the database by using good sec

_system_rebuild_module_data

_system_rebuild_module_data() Helper function to scan and collect module .info.yml data. Return value \Drupal\Core\Extension\Extension[] An associative array of module information. File core/modules/system/system.module, line 958 Configuration system that lets administrators modify the workings of the site. Code function _system_rebuild_module_data() { $listing = new ExtensionDiscovery(\Drupal::root()); // Find installation profiles. This needs to happen before performing a // module

AssetResolver::getJsAssets

public AssetResolver::getJsAssets(AttachedAssetsInterface $assets, $optimize) Returns the JavaScript assets for the current response's libraries. References to JavaScript files are placed in a certain order: first, all 'core' files, then all 'module' and finally all 'theme' JavaScript files are added to the page. Then, all settings are output, followed by 'inline' JavaScript code. If running update.php, all preprocessing is disabled. Note that hook_js_alter(&$javascript) is called during th

RoleAccessControlHandler::checkAccess

protected RoleAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for wh

FormInterface

Provides an interface for a Form. Hierarchy interface \Drupal\Core\Form\FormInterface Related topics Form generation Describes how to generate and manipulate forms and process form submissions. File core/lib/Drupal/Core/Form/FormInterface.php, line 10 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormInterface::buildForm public function Form constructor. FormInterface::getFormId public function Returns a unique string identifying the form.

NodeType::$help

Help information shown to the user when creating a Node of this type. Type: string File core/modules/node/src/Entity/NodeType.php, line 79 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code protected $help;

db_query

db_query($query, array $args = array(), array $options = array()) Executes an arbitrary query string against the active database. Use this function for SELECT queries if it is just a simple query string. If the caller or other modules need to change the query, use db_select() instead. Do not use this function for INSERT, UPDATE, or DELETE queries. Those should be handled via db_insert(), db_update() and db_delete() respectively. Parameters string|\Drupal\Core\Database\StatementInterface $query

ShortcutSetDeleteForm

Builds the shortcut set deletion form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses EntityDeleteFormTraitclass

ConfigSingleImportForm::getQuestion

public ConfigSingleImportForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/config/src/Form/ConfigSingleImportForm.php, line 189 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drupal\config\Form Code public function getQuestion() { if ($this->data['config_type'] === 'system.simple')