You are here

protected function EntityFormProxy::getInputValue in Lightning Media 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\lightning_media\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 src/Plugin/EntityBrowser/Widget/EmbedCode.php
EntityFormProxy::getForm in src/Plugin/EntityBrowser/Widget/EntityFormProxy.php
EntityFormProxy::validate in src/Plugin/EntityBrowser/Widget/EntityFormProxy.php
1 method overrides EntityFormProxy::getInputValue()
FileUpload::getInputValue in src/Plugin/EntityBrowser/Widget/FileUpload.php
Returns the current input value, if any.

File

src/Plugin/EntityBrowser/Widget/EntityFormProxy.php, line 189

Class

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

Namespace

Drupal\lightning_media\Plugin\EntityBrowser\Widget

Code

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