You are here

public function YamlFormElementManagerInterface::invokeMethod in YAML Form 8

Invoke a method for specific FAPI 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.

1 method overrides YamlFormElementManagerInterface::invokeMethod()
YamlFormElementManager::invokeMethod in src/YamlFormElementManager.php
Invoke a method for specific FAPI element.

File

src/YamlFormElementManagerInterface.php, line 41

Class

YamlFormElementManagerInterface
Collects available form elements.

Namespace

Drupal\yamlform

Code

public function invokeMethod($method, array &$element, &$context1 = NULL, &$context2 = NULL);