PluralTranslatableMarkup::__construct

public PluralTranslatableMarkup::__construct($count, $singular, $plural, array $args = [], array $options = [], TranslationInterface $string_translation = NULL) Constructs a new PluralTranslatableMarkup object. Parses values passed into this class through the format_plural() function in Drupal and handles an optional context for the string. Parameters int $count: The item count to display. string $singular: The string for the singular case. Make sure it is clear this is singular, to ease trans

ForumManager::getChildren

public ForumManager::getChildren($vid, $tid) Utility method to fetch the child forums for a given forum. Parameters int $vid: The forum vocabulary ID. int $tid: The forum ID to fetch the children for. Return value array Array of children. Overrides ForumManagerInterface::getChildren File core/modules/forum/src/ForumManager.php, line 398 Class ForumManager Provides forum manager service. Namespace Drupal\forum Code public function getChildren($vid, $tid) { if (!empty($this->forum

SharedTempStore::set

public SharedTempStore::set($key, $value) Stores a particular key/value pair in this SharedTempStore. Parameters string $key: The key of the data to store. mixed $value: The data to store. File core/modules/user/src/SharedTempStore.php, line 189 Class SharedTempStore Stores and retrieves temporary data for a given owner. Namespace Drupal\user Code public function set($key, $value) { if (!$this->lockBackend->acquire($key)) { $this->lockBackend->wait($key); if (!$t

RevisionTrackerInterface

Tracks metadata about revisions across content entities. Hierarchy interface \Drupal\content_moderation\RevisionTrackerInterface File core/modules/content_moderation/src/RevisionTrackerInterface.php, line 8 Namespace Drupal\content_moderation Members Name Modifiers Type Description RevisionTrackerInterface::setLatestRevision public function Sets the latest revision of a given entity.

ViewExecutable::_build

public ViewExecutable::_build($key) Builds an individual set of handlers. This is an internal method. @todo Some filter needs this function, even it is internal. Parameters string $key: The type of handlers (filter etc.) which should be iterated over to build the relationship and query information. File core/modules/views/src/ViewExecutable.php, line 1334 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function _build($key) { $handlers = &$t

SqlContentEntityStorage::$langcodeKey

The entity langcode key. Type: string|bool Overrides EntityStorageBase::$langcodeKey File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 62 Class SqlContentEntityStorage A content entity database storage implementation. Namespace Drupal\Core\Entity\Sql Code protected $langcodeKey = FALSE;

AliasWhitelist

Extends CacheCollector to build the path alias whitelist over time. Hierarchy class \Drupal\Core\Cache\CacheCollector implements CacheCollectorInterface, DestructableInterfaceclass \Drupal\Core\Path\AliasWhitelist implements AliasWhitelistInterface File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 13 Namespace Drupal\Core\Path Members Name Modifiers Type Description AliasWhitelist::$aliasStorage protected property The Path CRUD service. AliasWhitelist::$state

MetadataGenerator

Generates in-place editing metadata for an entity field. Hierarchy class \Drupal\quickedit\MetadataGenerator implements MetadataGeneratorInterface File core/modules/quickedit/src/MetadataGenerator.php, line 14 Namespace Drupal\quickedit Members Name Modifiers Type Description MetadataGenerator::$accessChecker protected property An object that checks if a user has access to edit a given entity field. MetadataGenerator::$editorManager protected property The manager

MenuLinkBase::getFormClass

public MenuLinkBase::getFormClass() Returns the name of a class that can build an editing form for this link. To instantiate the form class, use an instance of the \Drupal\Core\DependencyInjection\ClassResolverInterface, such as from the class_resolver service. Then call the setMenuLinkInstance() method on the form instance with the menu link plugin instance. @todo Add a code example. https://www.drupal.org/node/2302849 Return value string A class that implements \Drupal\Core\Menu\Form\MenuLin

PluralTranslatableMarkup::render

public PluralTranslatableMarkup::render() Renders the object as a string. Return value string The translated string. Overrides TranslatableMarkup::render File core/lib/Drupal/Core/StringTranslation/PluralTranslatableMarkup.php, line 105 Class PluralTranslatableMarkup A class to hold plural translatable markup. Namespace Drupal\Core\StringTranslation Code public function render() { if (!$this->translatedString) { $this->translatedString = $this->getStringTranslation()-&g