template_preprocess_book_node_export_html

template_preprocess_book_node_export_html(&$variables) Prepares variables for single node export templates. Default template: book-node-export-html.html.twig. Parameters array $variables: An associative array containing the following keys: node: The node that will be output. children: All the rendered child nodes within the current node. Defaults to an empty string. File core/modules/book/book.module, line 495 Allows users to create and organize related content in an outline. Code fu

AccessDeniedSubscriber::onException

public AccessDeniedSubscriber::onException(GetResponseForExceptionEvent $event) Redirects users when access is denied. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php, line 52 Class AccessDeniedSubscriber Redirects users when access is denied. Namespace Drupal\user\EventSubscriber Code public function onException(GetResponseForExceptionEvent $event) { $exce

LogMessageParser::parseMessagePlaceholders

public LogMessageParser::parseMessagePlaceholders(&$message, array &$context) Parses and transforms message and its placeholders to a common format. For a value to be considered as a placeholder should be in the following formats: PSR3 format: Drupal specific string placeholder format: Values in PSR3 format will be transformed to SafeMarkup::format() format. Parameters string $message: The message that contains the placeholders. If the message is in PSR3 style, it will be transforme

AccountProxy::getRoles

public AccountProxy::getRoles($exclude_locked_roles = FALSE) Returns a list of roles. Parameters bool $exclude_locked_roles: (optional) If TRUE, locked roles (anonymous/authenticated) are not returned. Return value array List of role IDs. Overrides AccountInterface::getRoles File core/lib/Drupal/Core/Session/AccountProxy.php, line 74 Class AccountProxy A proxied implementation of AccountInterface. Namespace Drupal\Core\Session Code public function getRoles($exclude_locked_roles = FAL

BookController::adminOverview

public BookController::adminOverview() Returns an administrative overview of all books. Return value array A render array representing the administrative page content. File core/modules/book/src/Controller/BookController.php, line 75 Class BookController Controller routines for book routes. Namespace Drupal\book\Controller Code public function adminOverview() { $rows = array(); $headers = array(t('Book'), t('Operations')); // Add any recognized books to the table list. foreac

FormValidator::validateForm

public FormValidator::validateForm($form_id, &$form, FormStateInterface &$form_state) Validates user-submitted form data in the $form_state. Parameters $form_id: A unique string identifying the form for validation, submission, theming, and hook_form_alter functions. $form: An associative array containing the structure of the form, which is passed by reference. Form validation handlers are able to alter the form structure (like #process and #after_build callbacks during form building) i

StringDatabaseStorage::__construct

public StringDatabaseStorage::__construct(Connection $connection, array $options = array()) Constructs a new StringDatabaseStorage class. Parameters \Drupal\Core\Database\Connection $connection: A Database connection to use for reading and writing configuration data. array $options: (optional) Any additional database connection options to use in queries. File core/modules/locale/src/StringDatabaseStorage.php, line 34 Class StringDatabaseStorage Defines a class to store localized strings i

StateTransitionValidation::transitionStorage

protected StateTransitionValidation::transitionStorage() Returns the transition entity storage service. Return value \Drupal\Core\Entity\EntityStorageInterface The transition state entity storage. File core/modules/content_moderation/src/StateTransitionValidation.php, line 218 Class StateTransitionValidation Validates whether a certain state transition is allowed. Namespace Drupal\content_moderation Code protected function transitionStorage() { return $this->entityTypeManager->

MenuLinkDefaultForm::__construct

public MenuLinkDefaultForm::__construct(MenuLinkManagerInterface $menu_link_manager, MenuParentFormSelectorInterface $menu_parent_selector, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler) Constructs a new \Drupal\Core\Menu\Form\MenuLinkDefaultForm. Parameters \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager. \Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_parent_selector: The menu parent form selector service. \Drupa

views-view-row-rss.html.twig

Default theme implementation to display an item in a views RSS feed. Available variables: title: RSS item title. link: RSS item link. description: RSS body text. item_elements: RSS item elements to be rendered as XML (pubDate, creator, guid). See also template_preprocess_views_view_row_rss() File core/modules/views/templates/views-view-row-rss.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.