AttachmentsTrait::$attachments

The attachments for this response. Type: array File core/lib/Drupal/Core/Render/AttachmentsTrait.php, line 17 Class AttachmentsTrait Provides an implementation of AttachmentsInterface. Namespace Drupal\Core\Render Code protected $attachments = [];

db_next_id

db_next_id($existing_id = 0) Retrieves a unique id. Use this function if for some reason you can't use a serial field. Using a serial field is preferred, and InsertQuery::execute() returns the value of the last ID inserted. Parameters int $existing_id: After a database import, it might be that the sequences table is behind, so by passing in a minimum ID, it can be assured that we never issue the same ID. Return value int An integer number larger than any number returned before for this sequen

Schema API

API to handle database schemas. A Drupal schema definition is an array structure representing one or more tables and their related keys and indexes. A schema is defined by hook_schema(), which usually lives in a modulename.install file. By implementing hook_schema() and specifying the tables your module declares, you can easily create and drop these tables on all supported database engines. You don't have to deal with the different SQL dialects for table creation and alteration of the supported

rdf_preprocess_comment

rdf_preprocess_comment(&$variables) Implements hook_preprocess_HOOK() for comment templates. File core/modules/rdf/rdf.module, line 447 Enables semantically enriched output for Drupal sites in the form of RDFa. Code function rdf_preprocess_comment(&$variables) { $comment = $variables['comment']; $mapping = rdf_get_mapping('comment', $comment->bundle()); $bundle_mapping = $mapping->getPreparedBundleMapping(); if (!empty($bundle_mapping['types']) && !isset($commen

BlockController::$themeHandler

The theme handler. Type: \Drupal\Core\Extension\ThemeHandlerInterface File core/modules/block/src/Controller/BlockController.php, line 21 Class BlockController Controller routines for admin block routes. Namespace Drupal\block\Controller Code protected $themeHandler;

BlockContent::$theme

The theme the block is being created in. When creating a new custom block from the block library, the user is redirected to the configure form for that block in the given theme. The theme is stored against the block when the custom block add form is shown. Type: string File core/modules/block_content/src/Entity/BlockContent.php, line 76 Class BlockContent Defines the custom block entity class. Namespace Drupal\block_content\Entity Code protected $theme;

ConfigurableLanguageManager::$requestStack

The request object. Type: \Symfony\Component\HttpFoundation\RequestStack File core/modules/language/src/ConfigurableLanguageManager.php, line 48 Class ConfigurableLanguageManager Overrides default LanguageManager to provide configured languages. Namespace Drupal\language Code protected $requestStack;

BlockListBuilder

Defines a class to build a listing of block entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\block\BlockListBuilder implements FormInterface See also \Drupal\block\Entity\Block File core/modules/block/src/BlockListBuilder.php, line 24 Namespa

TranslateFormBase

Defines the locale user interface translation form base. Provides methods for searching and filtering strings. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\locale\Form\TranslateFormBase File core/modules/locale/src/Form/TranslateFormBase.php, line 16 Namespace Drupal\locale\Form M

ConfigurableLanguageManager::$languageTypesInfo

Local cache for language type information. Type: array File core/modules/language/src/ConfigurableLanguageManager.php, line 69 Class ConfigurableLanguageManager Overrides default LanguageManager to provide configured languages. Namespace Drupal\language Code protected $languageTypesInfo;