protected function EntityFormProxy::getAllowedBundles in Varbase Media 8.7
Same name and namespace in other branches
- 8.5 modules/entity_browser_generic_embed/src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\entity_browser_generic_embed\Plugin\EntityBrowser\Widget\EntityFormProxy::getAllowedBundles()
- 8.6 modules/entity_browser_generic_embed/src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\entity_browser_generic_embed\Plugin\EntityBrowser\Widget\EntityFormProxy::getAllowedBundles()
- 9.0.x modules/entity_browser_generic_embed/src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\entity_browser_generic_embed\Plugin\EntityBrowser\Widget\EntityFormProxy::getAllowedBundles()
Returns the bundles that this widget may use.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current form state.
Return value
string[] The bundles that this widget may use. If all bundles may be used, the returned array will be empty.
3 calls to EntityFormProxy::getAllowedBundles()
- EmbedCode::getEmbedDescription in modules/
entity_browser_generic_embed/ src/ Plugin/ EntityBrowser/ Widget/ EmbedCode.php - Get Embed Description.
- EntityFormProxy::getForm in modules/
entity_browser_generic_embed/ src/ Plugin/ EntityBrowser/ Widget/ EntityFormProxy.php - EntityFormProxy::validate in modules/
entity_browser_generic_embed/ src/ Plugin/ EntityBrowser/ Widget/ EntityFormProxy.php
File
- modules/
entity_browser_generic_embed/ src/ Plugin/ EntityBrowser/ Widget/ EntityFormProxy.php, line 74
Class
- EntityFormProxy
- Base class for EB widgets which wrap around an (inline) entity form.
Namespace
Drupal\entity_browser_generic_embed\Plugin\EntityBrowser\WidgetCode
protected function getAllowedBundles(FormStateInterface $form_state) {
return (array) $form_state
->get([
'entity_browser',
'widget_context',
'target_bundles',
]);
}