protected function EmbedCode::getCurrentValue in Lightning Media 8.4
Same name and namespace in other branches
- 8.3 src/Plugin/EntityBrowser/Widget/EmbedCode.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\EmbedCode::getCurrentValue()
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.
Overrides EntityFormProxy::getCurrentValue
1 call to EmbedCode::getCurrentValue()
- EmbedCode::validate in src/
Plugin/ EntityBrowser/ Widget/ EmbedCode.php
File
- src/
Plugin/ EntityBrowser/ Widget/ EmbedCode.php, line 47
Class
- EmbedCode
- An Entity Browser widget for creating media entities from embed codes.
Namespace
Drupal\lightning_media\Plugin\EntityBrowser\WidgetCode
protected function getCurrentValue(FormStateInterface $form_state) {
$value = parent::getCurrentValue($form_state);
return trim($value);
}