You are here

public function Webform::component in Little helpers 7

Same name and namespace in other branches
  1. 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

Webform

Namespace

Drupal\little_helpers\Webform

Code

public function &component($cid) {
  return $this->webform['components'][$cid];
}