public function EckEntity::checkRequirements in Entity Construction Kit (ECK) 8
Checks if requirements for this plugin are OK.
Throws
\Drupal\migrate\Exception\RequirementsException Thrown when requirements are not met.
Overrides DrupalSqlBase::checkRequirements
File
- src/
Plugin/ migrate/ source/ d7/ EckEntity.php, line 133
Class
- EckEntity
- Drupal 7 ECK Entity source from database.
Namespace
Drupal\eck\Plugin\migrate\source\d7Code
public function checkRequirements() {
$table_name = 'eck_' . $this->entityType;
if (!$this
->getDatabase()
->schema()
->tableExists($table_name)) {
throw new RequirementsException("ECK table for '{$this->entityType}' does not exist");
}
parent::checkRequirements();
}