StringTranslationTrait::setStringTranslation

public StringTranslationTrait::setStringTranslation(TranslationInterface $translation) Sets the string translation service to use. Parameters \Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service. Return value $this File core/lib/Drupal/Core/StringTranslation/StringTranslationTrait.php, line 118 Class StringTranslationTrait Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. Namespace Drupal\Core\StringTranslation Code p

RouteProcessorCurrent

Provides a route processor to replace <current>. Hierarchy class \Drupal\Core\RouteProcessor\RouteProcessorCurrent implements OutboundRouteProcessorInterface File core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php, line 12 Namespace Drupal\Core\RouteProcessor Members Name Modifiers Type Description RouteProcessorCurrent::$routeMatch protected property The current route match. RouteProcessorCurrent::processOutbound public function Processes the ou

ForumController::$vocabularyStorage

Vocabulary storage. Type: \Drupal\taxonomy\VocabularyStorageInterface File core/modules/forum/src/Controller/ForumController.php, line 36 Class ForumController Controller routines for forum routes. Namespace Drupal\forum\Controller Code protected $vocabularyStorage;

NodeInterface::getRevisionAuthor

public NodeInterface::getRevisionAuthor() Gets the node revision author. Return value \Drupal\user\UserInterface The user entity for the revision author. Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser() instead. File core/modules/node/src/NodeInterface.php, line 148 Class NodeInterface Provides an interface defining a node entity. Namespace Drupal\node Code public function getRevisionAuthor();

BreakpointManagerInterface

Defines an interface for breakpoint managers. Hierarchy interface \Drupal\breakpoint\BreakpointManagerInterface File core/modules/breakpoint/src/BreakpointManagerInterface.php, line 8 Namespace Drupal\breakpoint Members Name Modifiers Type Description BreakpointManagerInterface::getBreakpointsByGroup public function Gets breakpoints for the specified group. BreakpointManagerInterface::getGroupProviders public function Gets all the providers for the specified brea

drupal_unlink

drupal_unlink($uri, $context = NULL) Deletes a file. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::unlink(). Related topics File interface Common file handling functions. File core/includes/file.inc, line 1117 API for handling file uploads and server file management. Code function drupal_unlink($uri, $context = NULL) { return \Drupal::service('file_system')->unlink($uri, $context); }

block_install

block_install() Implements hook_install(). File core/modules/block/block.install, line 13 Contains install and update functions for Block. Code function block_install() { // Because the Block module upon installation unconditionally overrides all // HTML output by selecting a different page display variant, we must // invalidate all cached HTML output. Cache::invalidateTags(['rendered']); }

BlockAccessControlHandler::checkAccess

protected BlockAccessControlHandler::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 w

ExecutionContext::$validator

Type: \Symfony\Component\Validator\ValidatorInterface File core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php, line 26 Class ExecutionContext Defines an execution context class. Namespace Drupal\Core\TypedData\Validation Code protected $validator;

Schema::dropPrimaryKey

public Schema::dropPrimaryKey($table) Drop the primary key. Parameters $table: The table to be altered. Return value TRUE if the primary key was successfully dropped, FALSE if there was no primary key on this table to begin with. Overrides Schema::dropPrimaryKey File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 468 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code public function dropPrimaryKey($table) {