You are here

public function FormMap::removeMappedField in Pardot Integration 2.x

Remove a particular row from the MappedField collection.

Parameters

int $key: The index where the instance of MappedFieldInterface lives.

File

src/FormMap.php, line 126

Class

FormMap
Provides an interface for defining Pardot Form Map entities.

Namespace

Drupal\pardot

Code

public function removeMappedField(int $key) {
  if (isset($this->mapping[$key])) {
    unset($this->mapping[$key]);
  }
}