You are here

public function FeedsConfigurable::existing in Feeds 8.2

Determine whether this object is persistent and enabled. I. e. it is defined either in code or in the database and it is enabled.

1 call to FeedsConfigurable::existing()
FeedsSource::existing in lib/Drupal/feeds/FeedsSource.php
Only return source if configuration is persistent and valid.
1 method overrides FeedsConfigurable::existing()
FeedsSource::existing in lib/Drupal/feeds/FeedsSource.php
Only return source if configuration is persistent and valid.

File

lib/Drupal/feeds/Plugin/FeedsConfigurable.php, line 95
FeedsConfigurable and helper functions.

Class

FeedsConfigurable
Base class for configurable classes. Captures configuration handling, form handling and distinguishes between in-memory configuration and persistent configuration.

Namespace

Drupal\feeds\Plugin

Code

public function existing() {

  // if ($this->export_type == FEEDS_EXPORT_NONE) {
  //   throw new FeedsNotExistingException(t('Object is not persistent.'));
  // }
  // if ($this->disabled) {
  //   throw new FeedsNotExistingException(t('Object is disabled.'));
  // }
  return $this;
}