CacheContextsManager::$contexts

Available cache context IDs and corresponding labels. Type: string[] File core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php, line 37 Class CacheContextsManager Converts cache context tokens into cache keys. Namespace Drupal\Core\Cache\Context Code protected $contexts;

Connection::DATABASE_NOT_FOUND

Error code for "Unknown database" error. File core/lib/Drupal/Core/Database/Driver/mysql/Connection.php, line 27 Class Connection MySQL implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\mysql Code const DATABASE_NOT_FOUND = 1049;

EntityAutocompleteController::create

public static EntityAutocompleteController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container:

CheckProvider::$staticRequirementMap

An array to map static requirement keys to service IDs. Type: array File core/lib/Drupal/Core/Access/CheckProvider.php, line 49 Class CheckProvider Loads access checkers from the container. Namespace Drupal\Core\Access Code protected $staticRequirementMap;

MenuLinkBase::getParent

public MenuLinkBase::getParent() Returns the plugin ID of the menu link's parent, or an empty string. Return value string The parent plugin ID. Overrides MenuLinkInterface::getParent File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 52 Class MenuLinkBase Defines a base menu link class. Namespace Drupal\Core\Menu Code public function getParent() { return $this->pluginDefinition['parent']; }

OverviewTerms::getFormId

public OverviewTerms::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/taxonomy/src/Form/OverviewTerms.php, line 57 Class OverviewTerms Provides terms overview form for a taxonomy vocabulary. Namespace Drupal\taxonomy\Form Code public function getFormId() { return 'taxonomy_overview_terms'; }

shortcut_toolbar

shortcut_toolbar() Implements hook_toolbar(). File core/modules/shortcut/shortcut.module, line 372 Allows users to manage customizable lists of shortcut links. Code function shortcut_toolbar() { $user = \Drupal::currentUser(); $items = []; $items['shortcuts'] = [ '#cache' => [ 'contexts' => [ // Cacheable per user, because each user can have their own shortcut // set, even if they cannot create or select a shortcut set, because // an administrato

shortcut_set_edit_access

shortcut_set_edit_access(ShortcutSetInterface $shortcut_set = NULL) Access callback for editing a shortcut set. Parameters Drupal\shortcut\ShortcutSetInterface $shortcut_set: (optional) The shortcut set to be edited. If not set, the current user's shortcut set will be used. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/shortcut/shortcut.module, line 57 Allows users to manage customizable lists of shortcut links. Code function shortcut_set_edit_a

CommentInterface::getCommentedEntityTypeId

public CommentInterface::getCommentedEntityTypeId() Returns the type of the entity to which the comment is attached. Return value string An entity type. File core/modules/comment/src/CommentInterface.php, line 62 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getCommentedEntityTypeId();

FormSubmitter::__construct

public FormSubmitter::__construct(RequestStack $request_stack, UrlGeneratorInterface $url_generator) Constructs a new FormValidator. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. \Drupal\Core\Routing\UrlGeneratorInterface $url_generator: File core/lib/Drupal/Core/Form/FormSubmitter.php, line 37 Class FormSubmitter Provides submission processing for forms. Namespace Drupal\Core\Form Code public function __construct(RequestStack $request_st