public function Webform::component in Little helpers 7
Same name and namespace in other branches
- 7.2 src/Webform/Webform.php \Drupal\little_helpers\Webform\Webform::component()
Get the component array by it's component ID.
Parameters
int $cid: The component id as in {webform_component}.
Return value
&array The component array.
File
- src/
Webform/ Webform.php, line 56
Class
Namespace
Drupal\little_helpers\WebformCode
public function &component($cid) {
return $this->webform['components'][$cid];
}