function DestinationBase::checkRequirements

Same name in other branches
  1. 8.9.x 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()
  3. 11.x core/modules/migrate/src/Plugin/migrate/destination/DestinationBase.php \Drupal\migrate\Plugin\migrate\destination\DestinationBase::checkRequirements()

Overrides RequirementsInterface::checkRequirements

File

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

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));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.