You are here

public function FeedType::addMapping in Feeds 8.3

Adds a mapping to the feed type.

Parameters

array $mapping: A single mapping.

Overrides FeedTypeInterface::addMapping

File

src/Entity/FeedType.php, line 332

Class

FeedType
Defines the Feeds feed type entity.

Namespace

Drupal\feeds\Entity

Code

public function addMapping(array $mapping) {
  $this->mappings[] = $mapping;
  return $this;
}