Config::$eventDispatcher

An event dispatcher instance to use for configuration events. Type: \Symfony\Component\EventDispatcher\EventDispatcherInterface File core/lib/Drupal/Core/Config/Config.php, line 26 Class Config Defines the default configuration object. Namespace Drupal\Core\Config Code protected $eventDispatcher;

QueryConditionTrait::compile

public QueryConditionTrait::compile(Connection $connection, PlaceholderInterface $queryPlaceholder) Compiles the saved conditions for later retrieval. This method does not return anything, but simply prepares data to be retrieved via __toString() and arguments(). Parameters $connection: The database connection for which to compile the conditionals. $queryPlaceholder: The query this condition belongs to. If not given, the current query is used. Overrides ConditionInterface::compile File core/li

DatabaseQueue::garbageCollection

public DatabaseQueue::garbageCollection() Cleans queues of garbage. Overrides QueueGarbageCollectionInterface::garbageCollection File core/lib/Drupal/Core/Queue/DatabaseQueue.php, line 215 Class DatabaseQueue Default queue implementation. Namespace Drupal\Core\Queue Code public function garbageCollection() { try { // Clean up the queue for failed batches. $this->connection->delete(static::TABLE_NAME) ->condition('created', REQUEST_TIME - 864000, '<') -

SafeMarkup::isSafe

public static SafeMarkup::isSafe($string, $strategy = 'html') Checks if a string is safe to output. Parameters string|\Drupal\Component\Render\MarkupInterface $string: The content to be checked. string $strategy: (optional) This value is ignored. Return value bool TRUE if the string has been marked secure, FALSE otherwise. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Instead, you should just check if a variable is an instance of \Drupal\Component\Render\MarkupInterfa

BigPipeStrategy::createBigPipeJsPlaceholder

protected static BigPipeStrategy::createBigPipeJsPlaceholder($original_placeholder, array $placeholder_render_array) Creates a BigPipe JS placeholder. Parameters string $original_placeholder: The original placeholder. array $placeholder_render_array: The render array for a placeholder. Return value array The resulting BigPipe JS placeholder render array. File core/modules/big_pipe/src/Render/Placeholder/BigPipeStrategy.php, line 182 Class BigPipeStrategy Defines the BigPipe placeholder s

CssCollectionRenderer::__construct

public CssCollectionRenderer::__construct(StateInterface $state) Constructs a CssCollectionRenderer. Parameters \Drupal\Core\State\StateInterface $state: The state key/value store. File core/lib/Drupal/Core/Asset/CssCollectionRenderer.php, line 69 Class CssCollectionRenderer Renders CSS assets. Namespace Drupal\Core\Asset Code public function __construct(StateInterface $state) { $this->state = $state; }

FieldDefinitionInterface::isRequired

public FieldDefinitionInterface::isRequired() Returns whether the field can be empty. If a field is required, an entity needs to have at least a valid, non-empty item in that field's FieldItemList in order to pass validation. An item is considered empty if its isEmpty() method returns TRUE. Typically, that is if at least one of its required properties is empty. Return value bool TRUE if the field is required. Overrides DataDefinitionInterface::isRequired See also \Drupal\Core\TypedData\Plugin

AccountSwitcher::switchTo

public AccountSwitcher::switchTo(AccountInterface $account) Safely switches to another account. Each invocation of AccountSwitcherInterface::switchTo() must be matched by a corresponding invocation of AccountSwitcherInterface::switchBack() in the same function. Parameters \Drupal\Core\Session\AccountInterface $account: The account to switch to. Return value \Drupal\Core\Session\AccountSwitcherInterface $this. Overrides AccountSwitcherInterface::switchTo File core/lib/Drupal/Core/Session/Accou

Database::RETURN_NULL

Flag to indicate a query call should simply return NULL. This is used for queries that have no reasonable return value anyway, such as INSERT statements to a table without a serial primary key. File core/lib/Drupal/Core/Database/Database.php, line 20 Class Database Primary front-controller for the database system. Namespace Drupal\Core\Database Code const RETURN_NULL = 0;

BaseFieldOverride::getBaseFieldDefinition

protected BaseFieldOverride::getBaseFieldDefinition() Gets the base field definition. Return value \Drupal\Core\Field\BaseFieldDefinition File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 149 Class BaseFieldOverride Defines the base field override entity. Namespace Drupal\Core\Field\Entity Code protected function getBaseFieldDefinition() { if (!isset($this->baseFieldDefinition)) { $fields = $this->entityManager()->getBaseFieldDefinitions($this->entit