public function ContentHubPageDisplayVariantSubscriber::__construct in Acquia Content Hub 8
ContentHubViewSubscriber constructor.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
File
- src/
EventSubscriber/ ContentHubPageDisplayVariantSubscriber.php, line 30
Class
- ContentHubPageDisplayVariantSubscriber
- Selects the simple page display variant.
Namespace
Drupal\acquia_contenthub\EventSubscriberCode
public function __construct(RouteMatchInterface $route_match) {
$this->routeMatch = $route_match;
}