public function Submission::ids in Little helpers 7.2
Same name and namespace in other branches
- 7 src/Webform/Submission.php \Drupal\little_helpers\Webform\Submission::ids()
Return the nid and sid in an array.
Return value
int[] Array with two keys:
- nid: The nid of the webform.
- sid: The sid of the submission.
File
- src/
Webform/ Submission.php, line 162
Class
- Submission
- A useful wrapper for webform submission objects.
Namespace
Drupal\little_helpers\WebformCode
public function ids() {
return array(
'nid' => $this->node->nid,
'sid' => $this->submission->sid,
);
}