You are here

public function Text::updateFormSubmit in SimpleAds 8

Update an ad.

Overrides SimpleAdsTypeBase::updateFormSubmit

File

src/Plugin/SimpleAds/Type/Text.php, line 47

Class

Text
Text Ad type.

Namespace

Drupal\simpleads\Plugin\SimpleAds\Type

Code

public function updateFormSubmit($options, FormStateInterface $form_state, $type = NULL, $id = NULL) {
  if ($text = $form_state
    ->getValue('text')) {
    $options['text'] = $text;
  }
  return $options;
}