public static function BynderUpload::ajaxMetaproperties in Bynder 8
Same name and namespace in other branches
- 8.3 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::ajaxMetaproperties()
- 8.2 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::ajaxMetaproperties()
- 4.0.x src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::ajaxMetaproperties()
Ajax callback for metaproperties configuration.
File
- src/
Plugin/ EntityBrowser/ Widget/ BynderUpload.php, line 510
Class
- BynderUpload
- Uses upload to create media entities.
Namespace
Drupal\bynder\Plugin\EntityBrowser\WidgetCode
public static function ajaxMetaproperties(&$form, &$form_state, $request) {
$parents = array_slice($form_state
->getTriggeringElement()['#array_parents'], 0, -2);
$parents[] = 'metaproperty_options';
$test = NestedArray::getValue($form, $parents);
return NestedArray::getValue($form, $parents);
}