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_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(); }

tracker.install

Install, update, and uninstall functions for tracker.module. File core/modules/tracker/tracker.install Functions Name Description tracker_install Implements hook_install(). tracker_schema Implements hook_schema(). tracker_uninstall Implements hook_uninstall().

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'

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

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

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

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::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::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();