tour_tour_update

tour_tour_update($entity) Implements hook_ENTITY_TYPE_update() for tour entities. File core/modules/tour/tour.module, line 111 Main functions of the module. Code function tour_tour_update($entity) { \Drupal::service('plugin.manager.tour.tip')->clearCachedDefinitions(); }

tour_tour_insert

tour_tour_insert($entity) Implements hook_ENTITY_TYPE_insert() for tour entities. File core/modules/tour/tour.module, line 104 Main functions of the module. Code function tour_tour_insert($entity) { \Drupal::service('plugin.manager.tour.tip')->clearCachedDefinitions(); }

tour_toolbar

tour_toolbar() Implements hook_toolbar(). File core/modules/tour/tour.module, line 34 Main functions of the module. Code function tour_toolbar() { $items = []; $items['tour'] = [ '#cache' => [ 'contexts' => [ 'user.permissions', ], ], ]; if (!\Drupal::currentUser()->hasPermission('access tour')) { return $items; } $items['tour'] += array( '#type' => 'toolbar_item', 'tab' => array( '#type' => 'html_tag', '#tag'

tour_page_bottom

tour_page_bottom(array &$page_bottom) Implements hook_page_bottom(). File core/modules/tour/tour.module, line 76 Main functions of the module. Code function tour_page_bottom(array &$page_bottom) { if (!\Drupal::currentUser()->hasPermission('access tour')) { return; } // Load all of the items and match on route name. $route_match = \Drupal::routeMatch(); $route_name = $route_match->getRouteName(); $results = \Drupal::entityQuery('tour') ->condition('route

tour_help

tour_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/tour/tour.module, line 14 Main functions of the module. Code function tour_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.tour': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t("The Tour module provides users with guided tours of the site interface. Each tour consists of several t

TourViewBuilder::viewMultiple

public TourViewBuilder::viewMultiple(array $entities = array(), $view_mode = 'full', $langcode = NULL) Builds the render array for the provided entities. Parameters array $entities: An array of entities implementing EntityInterface to view. string $view_mode: (optional) The view mode that should be used to render the entity. string $langcode: (optional) For which language the entity should be rendered, defaults to the current content language. Return value A render array for the entities, ind

TourViewBuilder

Provides a Tour view builder. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityViewBuilder implements EntityHandlerInterface, EntityViewBuilderInterfaceclass \Drupal\tour\TourViewBuilder File core/modules/tour/src/TourViewBuilder.php, line 11 Namespace Drupal\tour Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array of

TourInterface::resetKeyedRoutes

public TourInterface::resetKeyedRoutes() Resets the statically cached keyed routes. File core/modules/tour/src/TourInterface.php, line 63 Class TourInterface Provides an interface defining a tour entity. Namespace Drupal\tour Code public function resetKeyedRoutes();

TourInterface::hasMatchingRoute

public TourInterface::hasMatchingRoute($route_name, $route_params) Whether the tour matches a given set of route parameters. Parameters string $route_name: The route name the parameters are for. array $route_params: Associative array of raw route params. Return value bool TRUE if the tour matches the route parameters. File core/modules/tour/src/TourInterface.php, line 31 Class TourInterface Provides an interface defining a tour entity. Namespace Drupal\tour Code public function hasMa

TourInterface::getTips

public TourInterface::getTips() Returns the tips for this tour. Return value array An array of tip plugins. File core/modules/tour/src/TourInterface.php, line 50 Class TourInterface Provides an interface defining a tour entity. Namespace Drupal\tour Code public function getTips();