public function WebformCardsManager::hasCards in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_cards/src/WebformCardsManager.php \Drupal\webform_cards\WebformCardsManager::hasCards()
Determine if a webform has cards.
Parameters
\Drupal\webform\WebformInterface $webform: A webform.
Return value
bool TRUE if a webform has cards.
Overrides WebformCardsManagerInterface::hasCards
File
- modules/
webform_cards/ src/ WebformCardsManager.php, line 46
Class
- WebformCardsManager
- Manage webform cards.
Namespace
Drupal\webform_cardsCode
public function hasCards(WebformInterface $webform) {
return $this
->getNumberOfCards($webform) > 0 ? TRUE : FALSE;
}