You are here

protected function AnalyticsServiceForm::getPluginSubFormState in Analytics 8

Gets subform state for the plugin configuration subform.

Parameters

array $form: Full form array.

\Drupal\Core\Form\FormStateInterface $form_state: Parent form state.

Return value

\Drupal\Core\Form\SubformStateInterface Sub-form state for the media source configuration form.

3 calls to AnalyticsServiceForm::getPluginSubFormState()
AnalyticsServiceForm::form in src/Form/AnalyticsServiceForm.php
Gets the actual form array to be built.
AnalyticsServiceForm::submitForm in src/Form/AnalyticsServiceForm.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
AnalyticsServiceForm::validateForm in src/Form/AnalyticsServiceForm.php
Form validation handler.

File

src/Form/AnalyticsServiceForm.php, line 115

Class

AnalyticsServiceForm

Namespace

Drupal\analytics\Form

Code

protected function getPluginSubFormState(array $form, FormStateInterface $form_state) {
  return SubformState::createForSubform($form['service_configuration'], $form, $form_state)
    ->set('operation', $this->operation)
    ->set('type', $this->entity);
}