private function YoastSeoFieldManager::formGet in Real-time SEO for Drupal 8
Our helper to retrieve values in a form from a given key.
Example : formGet($form, 'myform.#value'); TODO : move this helper somewhere else.
Parameters
array $form: The form.
string $key: The key.
Return value
mixed Value accessed by get.
1 call to YoastSeoFieldManager::formGet()
- YoastSeoFieldManager::setFieldsConfiguration in src/
YoastSeoFieldManager.php - Set fields configuration from a form.
File
- src/
YoastSeoFieldManager.php, line 100
Class
- YoastSeoFieldManager
- Class YoastSeoFieldManager.
Namespace
Drupal\yoast_seoCode
private function formGet($form, $key) {
return NestedArray::getValue($form, explode('.', $key));
}