WebformShareHelper.php in Webform 8.5
Same filename and directory in other branches
Namespace
Drupal\webform_shareFile
modules/webform_share/src/WebformShareHelper.phpView source
<?php
namespace Drupal\webform_share;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Webform share helper class.
*/
class WebformShareHelper {
/**
* Determine if the current page is a webform share page.
*
* @return bool
* TRUE if the current page is a webform share page.
*/
public static function isPage(RouteMatchInterface $route_match = NULL) {
$route_match = $route_match ?: \Drupal::routeMatch();
return strpos($route_match
->getRouteName(), 'entity.webform.share_page') === 0;
}
}
Classes
Name | Description |
---|---|
WebformShareHelper | Webform share helper class. |