You are here

public function MapLayerEditForm::buildForm in Openlayers 8.4

Parameters

\Drupal\image\ImageStyleInterface $image_style: The image style.

string $image_effect: The image effect ID.

Return value

array The form structure.

Throws

\Symfony\Component\HttpKernel\Exception\NotFoundHttpException

Overrides MapLayerFormBase::buildForm

File

src/Form/MapLayerEditForm.php, line 19

Class

MapLayerEditForm
Provides an edit form for image effects.

Namespace

Drupal\openlayers\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, OpenlayersMapInterface $map = NULL, $layer = NULL) {
  $form = parent::buildForm($form, $form_state, $map, $layer);
  $form['#title'] = $this
    ->t('Edit %label layer', [
    '%label' => $this->mapLayer
      ->label(),
  ]);
  $form['actions']['submit']['#value'] = $this
    ->t('Update layer');
  return $form;
}