FieldUiRouteEnhancer

Enhances Field UI routes by adding proper information about the bundle name. Hierarchy class \Drupal\field_ui\Routing\FieldUiRouteEnhancer implements RouteEnhancerInterface File core/modules/field_ui/src/Routing/FieldUiRouteEnhancer.php, line 13 Namespace Drupal\field_ui\Routing Members Name Modifiers Type Description FieldUiRouteEnhancer::$entityManager protected property The entity manager. FieldUiRouteEnhancer::applies public function Declares if the route enh

AccessAwareRouter::__construct

public AccessAwareRouter::__construct(ChainRouter $chain_router, AccessManagerInterface $access_manager, AccountInterface $account) Constructs a router for Drupal with access check and upcasting. Parameters \Symfony\Cmf\Component\Routing\ChainRouter $chain_router: The chain router doing the actual routing. \Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager. \Drupal\Core\Session\AccountInterface $account: The account to use in access checks. File core/lib/Drupal/Core

Operations::getInfo

public Operations::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides Dropbutton::getInfo File core/lib/Drupal/Core/Render/Element/Operations.php, line 21 Class Operations Provides a render element for a set of operations links. Namespace Drupal\Core\Render\Element

DatabaseCacheTagsChecksum::catchException

protected DatabaseCacheTagsChecksum::catchException(\Exception $e) Act on an exception when cache might be stale. If the {cachetags} table does not yet exist, that's fine but if the table exists and yet the query failed, then the cache is stale and the exception needs to propagate. Parameters \Exception $e: The exception. Throws \Exception File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 202 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementati

LibraryDiscovery::$collector

The library discovery cache collector. Type: \Drupal\Core\Cache\CacheCollectorInterface File core/lib/Drupal/Core/Asset/LibraryDiscovery.php, line 17 Class LibraryDiscovery Discovers available asset libraries in Drupal. Namespace Drupal\Core\Asset Code protected $collector;

LocaleConfigManager::$languageManager

The language manager. Type: \Drupal\language\ConfigurableLanguageManagerInterface File core/modules/locale/src/LocaleConfigManager.php, line 69 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code protected $languageManager;

MessageForm::preview

public MessageForm::preview(array $form, FormStateInterface $form_state) Form submission handler for the 'preview' action. File core/modules/contact/src/MessageForm.php, line 174 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code public function preview(array $form, FormStateInterface $form_state) { $message = $this->entity; $message->preview = TRUE; $form_state->setRebuild(); }

MenuLinkContent::getParentId

public MenuLinkContent::getParentId() Gets the plugin ID of the parent menu link. Return value string A plugin ID, or empty string if this link is at the top level. Overrides MenuLinkContentInterface::getParentId File core/modules/menu_link_content/src/Entity/MenuLinkContent.php, line 119 Class MenuLinkContent Defines the menu link content entity class. Namespace Drupal\menu_link_content\Entity Code public function getParentId() { // Cast the parent ID to a string, only an empty str

TranslationString::$translation

The string translation. Type: string File core/modules/locale/src/TranslationString.php, line 26 Class TranslationString Defines the locale translation string object. Namespace Drupal\locale Code public $translation;

node_revision_delete

node_revision_delete($revision_id) Deletes a node revision. Parameters int $revision_id: The revision ID to delete. File core/modules/node/node.module, line 469 The core module that allows content to be submitted to the site. Code function node_revision_delete($revision_id) { \Drupal::entityTypeManager()->getStorage('node')->deleteRevision($revision_id); }