You are here

public function DestinationBase::checkRequirements in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php \Drupal\migrate\Plugin\migrate\destination\DestinationBase::checkRequirements()
  2. 10 core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php \Drupal\migrate\Plugin\migrate\destination\DestinationBase::checkRequirements()

Checks if requirements for this plugin are OK.

Throws

\Drupal\migrate\Exception\RequirementsException Thrown when requirements are not met.

Overrides RequirementsInterface::checkRequirements

File

core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php, line 77

Class

DestinationBase
Base class for migrate destination classes.

Namespace

Drupal\migrate\Plugin\migrate\destination

Code

public function checkRequirements() {
  if (empty($this->pluginDefinition['requirements_met'])) {
    throw new RequirementsException(sprintf("Destination plugin '%s' did not meet the requirements", $this->pluginId));
  }
}