You are here

protected function EntityFormProxy::getInputValue in Varbase Media 9.0.x

Same name and namespace in other branches
  1. 8.7 modules/entity_browser_generic_embed/src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\entity_browser_generic_embed\Plugin\EntityBrowser\Widget\EntityFormProxy::getInputValue()
  2. 8.5 modules/entity_browser_generic_embed/src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\entity_browser_generic_embed\Plugin\EntityBrowser\Widget\EntityFormProxy::getInputValue()
  3. 8.6 modules/entity_browser_generic_embed/src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\entity_browser_generic_embed\Plugin\EntityBrowser\Widget\EntityFormProxy::getInputValue()

Returns the current input value, if any.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The current form state.

Return value

mixed The input value, ready for further processing. Nothing will be done with the value if it's empty.

3 calls to EntityFormProxy::getInputValue()
EmbedCode::validate in modules/entity_browser_generic_embed/src/Plugin/EntityBrowser/Widget/EmbedCode.php
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 195

Class

EntityFormProxy
Base class for EB widgets which wrap around an (inline) entity form.

Namespace

Drupal\entity_browser_generic_embed\Plugin\EntityBrowser\Widget

Code

protected function getInputValue(FormStateInterface $form_state) {
  return $form_state
    ->getValue('input');
}