public function WebformElementManagerInterface::invokeMethod in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementManagerInterface.php \Drupal\webform\Plugin\WebformElementManagerInterface::invokeMethod()
Invoke a method for a Webform element.
Parameters
string $method: The method name.
array $element: An associative array containing an element with a #type property.
mixed $context1: (optional) An additional variable that is passed by reference.
mixed $context2: (optional) An additional variable that is passed by reference. If more context needs to be provided to implementations, then this should be an associative array as described above.
Return value
mixed|null Return result of the invoked method. NULL will be returned if the element and/or method name does not exist.
See also
\Drupal\webform\WebformSubmissionForm::prepareElements
1 method overrides WebformElementManagerInterface::invokeMethod()
- WebformElementManager::invokeMethod in src/
Plugin/ WebformElementManager.php - Invoke a method for a Webform element.
File
- src/
Plugin/ WebformElementManagerInterface.php, line 99
Class
- WebformElementManagerInterface
- Collects available webform elements.
Namespace
Drupal\webform\PluginCode
public function invokeMethod($method, array &$element, &$context1 = NULL, &$context2 = NULL);