TourInterface::getTip

public TourInterface::getTip($id) Returns tip plugin. Parameters string $id: The identifier of the tip. Return value \Drupal\tour\TipPluginInterface The tip plugin. File core/modules/tour/src/TourInterface.php, line 42 Class TourInterface Provides an interface defining a tour entity. Namespace Drupal\tour Code public function getTip($id);

TourInterface::getRoutes

public TourInterface::getRoutes() The routes that this tour will appear on. Return value array Returns array of routes for the tour. File core/modules/tour/src/TourInterface.php, line 18 Class TourInterface Provides an interface defining a tour entity. Namespace Drupal\tour Code public function getRoutes();

TourInterface::getModule

public TourInterface::getModule() Gets the module this tour belongs to. Return value string The module this tour belongs to. File core/modules/tour/src/TourInterface.php, line 58 Class TourInterface Provides an interface defining a tour entity. Namespace Drupal\tour Code public function getModule();

TourInterface

Provides an interface defining a tour entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\tour\TourInterface File core/modules/tour/src/TourInterface.php, line 10 Namespace Drupal\tour Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. CacheableDependencyInte

Tour::__construct

public Tour::__construct(array $values, $entity_type) Constructs an Entity object. Parameters array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified. string $entity_type: The type of the entity to create. Overrides ConfigEntityBase::__construct File core/modules/tour/src/Entity/Tour.php, line 88 Class Tour Defines the configured tour entity. Namespace Drupal\tour\Entity Code public function __construct(array

Tour::resetKeyedRoutes

public Tour::resetKeyedRoutes() Resets the statically cached keyed routes. Overrides TourInterface::resetKeyedRoutes File core/modules/tour/src/Entity/Tour.php, line 164 Class Tour Defines the configured tour entity. Namespace Drupal\tour\Entity Code public function resetKeyedRoutes() { unset($this->keyedRoutes); }

Tour::hasMatchingRoute

public Tour::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. Overrides TourInterface::hasMatchingRoute File core/modules/tour/src/Entity/Tour.php, line 137 Class Tour Defines the configured tour entity. Namespace Drupal\tour\Entity Code p

Tour::getTips

public Tour::getTips() Returns the tips for this tour. Return value array An array of tip plugins. Overrides TourInterface::getTips File core/modules/tour/src/Entity/Tour.php, line 111 Class Tour Defines the configured tour entity. Namespace Drupal\tour\Entity Code public function getTips() { $tips = array(); foreach ($this->tips as $id => $tip) { $tips[] = $this->getTip($id); } uasort($tips, function($a, $b) { if ($a->getWeight() == $b->getWeight()) {

Tour::getTip

public Tour::getTip($id) Returns tip plugin. Parameters string $id: The identifier of the tip. Return value \Drupal\tour\TipPluginInterface The tip plugin. Overrides TourInterface::getTip File core/modules/tour/src/Entity/Tour.php, line 104 Class Tour Defines the configured tour entity. Namespace Drupal\tour\Entity Code public function getTip($id) { return $this->tipsCollection->get($id); }

Tour::getRoutes

public Tour::getRoutes() The routes that this tour will appear on. Return value array Returns array of routes for the tour. Overrides TourInterface::getRoutes File core/modules/tour/src/Entity/Tour.php, line 97 Class Tour Defines the configured tour entity. Namespace Drupal\tour\Entity Code public function getRoutes() { return $this->routes; }