public function RequirementsException::getRequirementsString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Exception/RequirementsException.php \Drupal\migrate\Exception\RequirementsException::getRequirementsString()
Get the requirements as a string.
Return value
string A formatted requirements string.
File
- core/
modules/ migrate/ src/ Exception/ RequirementsException.php, line 60 - Contains \Drupal\migrate\Exception\RequirementsException.
Class
- RequirementsException
- Defines an
Namespace
Drupal\migrate\ExceptionCode
public function getRequirementsString() {
$output = '';
foreach ($this->requirements as $requirement_type => $requirements) {
if (!is_array($requirements)) {
$requirements = array(
$requirements,
);
}
foreach ($requirements as $value) {
$output .= "{$requirement_type}: {$value}. ";
}
}
return trim($output);
}