You are here

private function QueueForm::_Count in Notify 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/QueueForm.php \Drupal\notify\Form\QueueForm::_Count()
  2. 1.0.x src/Form/QueueForm.php \Drupal\notify\Form\QueueForm::_Count()

Helper function to emulate count() prior to PHP 7.2.

1 call to QueueForm::_Count()
QueueForm::buildForm in src/Form/QueueForm.php
Form constructor.

File

src/Form/QueueForm.php, line 69

Class

QueueForm
Defines a form that configures forms module settings.

Namespace

Drupal\notify\Form

Code

private function _Count($arg) {
  return is_countable($arg) ? count($arg) : 0;
}