You are here

public function FeedType::customSourceExists in Feeds 8.3

Returns if a custom source already exists.

Parameters

string $name: The source's machine name to check for existence.

Return value

bool True if the source exists, false otherwise.

Overrides FeedTypeInterface::customSourceExists

File

src/Entity/FeedType.php, line 394

Class

FeedType
Defines the Feeds feed type entity.

Namespace

Drupal\feeds\Entity

Code

public function customSourceExists($name) {
  return isset($this->custom_sources[$name]);
}