You are here

public function FeedType::isLocked in Feeds 8.3

Returns whether the feed type is considered locked.

Return value

bool True if locked, false if not.

Overrides FeedTypeInterface::isLocked

File

src/Entity/FeedType.php, line 252

Class

FeedType
Defines the Feeds feed type entity.

Namespace

Drupal\feeds\Entity

Code

public function isLocked() {
  foreach ($this
    ->getPlugins() as $plugin) {
    if ($plugin instanceof LockableInterface && $plugin
      ->isLocked()) {
      return TRUE;
    }
  }
  return FALSE;
}