Transaction

MySQL implementation of \Drupal\Core\Database\Transaction. Hierarchy class \Drupal\Core\Database\Transactionclass \Drupal\Core\Database\Driver\mysql\Transaction File core/lib/Drupal/Core/Database/Driver/mysql/Transaction.php, line 10 Namespace Drupal\Core\Database\Driver\mysql Members Name Modifiers Type Description Transaction::$connection protected property The connection object for this transaction. Transaction::$name protected property The name of the transa

AttachmentsTrait::getAttachments

public AttachmentsTrait::getAttachments() Gets attachments. Return value array The attachments. Overrides AttachmentsInterface::getAttachments File core/lib/Drupal/Core/Render/AttachmentsTrait.php, line 22 Class AttachmentsTrait Provides an implementation of AttachmentsInterface. Namespace Drupal\Core\Render Code public function getAttachments() { return $this->attachments; }

TranslationString::isTranslation

public TranslationString::isTranslation() Checks whether the object is a translation string. Return value bool TRUE if the object is a translation string, FALSE otherwise. Overrides StringInterface::isTranslation File core/modules/locale/src/TranslationString.php, line 79 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public function isTranslation() { return !empty($this->lid) && !empty($this->language) && iss

Renderer::$theme

The theme manager. Type: \Drupal\Core\Theme\ThemeManagerInterface File core/lib/Drupal/Core/Render/Renderer.php, line 25 Class Renderer Turns a render array into a HTML string. Namespace Drupal\Core\Render Code protected $theme;

db_escape_field

db_escape_field($field) Restricts a dynamic column or constraint name to safe characters. Only keeps alphanumeric and underscores. Parameters string $field: The field name to escape. Return value string The escaped field name as a string. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call escapeTable() on it. For example, $injected_database->escapeTable($table); See also \Drupal\Core\

PlaceholderGenerator::shouldAutomaticallyPlaceholder

public PlaceholderGenerator::shouldAutomaticallyPlaceholder(array $element) Whether the given render array should be automatically placeholdered. The render array should be placeholdered if its cacheability either has a cache context with too high cardinality, a cache tag with a too high invalidation rate, or a max-age that is too low. Either of these would make caching ineffective, and thus we choose to placeholder instead. Parameters array $element: The render array whose cacheability to ana

TitleResolver::getTitle

public TitleResolver::getTitle(Request $request, Route $route) Returns a static or dynamic title for the route. If the returned title can contain HTML that should not be escaped it should return a render array, for example: ['#markup' => 'title', '#allowed_tags' => ['em']] If the method returns a string and it is not marked safe then it will be auto-escaped. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object passed to the title callback. \Symfony\Componen

RouteSubscriber::$viewsDisplayPairs

Stores a list of view,display IDs which haven't be used in the alter event. Type: array File core/modules/views/src/EventSubscriber/RouteSubscriber.php, line 31 Class RouteSubscriber Builds up the routes of all views. Namespace Drupal\views\EventSubscriber Code protected $viewsDisplayPairs;

ConfigEntityMapper::getOperations

public ConfigEntityMapper::getOperations() Provides an array of information to build a list of operation links. Return value array An associative array of operation link data for this list, keyed by operation name, containing the following key-value pairs: title: The localized title of the operation. href: The path for the operation. options: An array of URL options for the path. weight: The weight of this operation. Overrides ConfigNamesMapper::getOperations File core/modules/config_tra

PoMemoryWriter::writeItem

public PoMemoryWriter::writeItem(PoItem $item) Writes the given item. Parameters PoItem $item: One specific item to write. Overrides PoWriterInterface::writeItem File core/lib/Drupal/Component/Gettext/PoMemoryWriter.php, line 27 Class PoMemoryWriter Defines a Gettext PO memory writer, to be used by the installer. Namespace Drupal\Component\Gettext Code public function writeItem(PoItem $item) { if (is_array($item->getSource())) { $item->setSource(implode(LOCALE_PLURAL_DELIM