ForumBreadcrumbBuilderBase::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/forum/src/Breadcrumb/ForumBreadcrumbBuilderBase.php, line 36 Class ForumBreadcrumbBuilderBase Provides a forum breadcrumb base class. Namespace Drupal\forum\Breadcrumb Code protected $entityManager;

MatcherDumper::dump

public MatcherDumper::dump(array $options = array()) Dumps a set of routes to the router table in the database. Available options: provider: The route grouping that is being dumped. All existing routes with this provider will be deleted on dump. base_class: The base class name. Parameters array $options: An array of options. Overrides MatcherDumperInterface::dump File core/lib/Drupal/Core/Routing/MatcherDumper.php, line 87 Class MatcherDumper Dumps Route information to a database tabl

LoggerChannelFactory::$channels

Array of all instantiated logger channels keyed by channel name. Type: \Drupal\Core\Logger\LoggerChannelInterface[] File core/lib/Drupal/Core/Logger/LoggerChannelFactory.php, line 20 Class LoggerChannelFactory Defines a factory for logging channels. Namespace Drupal\Core\Logger Code protected $channels = array();

HeadersCacheContext::getCacheableMetadata

public HeadersCacheContext::getCacheableMetadata($header = NULL) Gets the cacheability metadata for the context based on the parameter value. There are three valid cases for the returned CacheableMetadata object: An empty object means this can be optimized away safely. A max-age of 0 means that this context can never be optimized away. It will never bubble up and cache tags will not be used. Any non-zero max-age and cache tags will bubble up into the cache item if this is optimized away to allo

FieldStorageAddForm::buildForm

public FieldStorageAddForm::buildForm(array $form, FormStateInterface $form_state, $entity_type_id = NULL, $bundle = NULL) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/field_ui/src/Form/FieldStorageAddForm.php, line 104 Class FieldStorageAddForm Provides a form f

NodeRevisionAccessCheck::checkAccess

public NodeRevisionAccessCheck::checkAccess(NodeInterface $node, AccountInterface $account, $op = 'view') Checks node revision access. Parameters \Drupal\node\NodeInterface $node: The node to check. \Drupal\Core\Session\AccountInterface $account: A user object representing the user for whom the operation is to be performed. string $op: (optional) The specific operation being checked. Defaults to 'view.' Return value bool TRUE if the operation may be performed, FALSE otherwise. File core/modul

COMMENT_ANONYMOUS_MUST_CONTACT

Anonymous posters are required to leave their contact information. File core/modules/comment/comment.module, line 42 Enables users to comment on published content. Code const COMMENT_ANONYMOUS_MUST_CONTACT = 2;

config_translation_help

config_translation_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/config_translation/config_translation.module, line 15 Configuration Translation module. Code function config_translation_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.config_translation': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Configuration Translation

file_file_download

file_file_download($uri) Implements hook_file_download(). File core/modules/file/file.module, line 590 Defines a "managed_file" Form API field and a "file" field for Field module. Code function file_file_download($uri) { // Get the file record based on the URI. If not in the database just return. /** @var \Drupal\file\FileInterface[] $files */ $files = entity_load_multiple_by_properties('file', array('uri' => $uri)); if (count($files)) { foreach ($files as $item) { // Sin

template_preprocess_menu_local_action

template_preprocess_menu_local_action(&$variables) Prepares variables for single local action link templates. Default template: menu-local-action.html.twig. Parameters array $variables: An associative array containing: element: A render element containing: #link: A menu link array with 'title', 'url', and (optionally) 'localized_options' keys. Related topics Menu system Define the navigation menus, local actions and tasks, and contextual links. File core/includes/menu.inc, line 65 A