Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -29,19 +29,19 @@ function image_uninstall() {
|
|||
*/
|
||||
function image_requirements($phase) {
|
||||
if ($phase != 'runtime') {
|
||||
return array();
|
||||
return [];
|
||||
}
|
||||
|
||||
$toolkit = \Drupal::service('image.toolkit.manager')->getDefaultToolkit();
|
||||
if ($toolkit) {
|
||||
$plugin_definition = $toolkit->getPluginDefinition();
|
||||
$requirements = array(
|
||||
'image.toolkit' => array(
|
||||
$requirements = [
|
||||
'image.toolkit' => [
|
||||
'title' => t('Image toolkit'),
|
||||
'value' => $toolkit->getPluginId(),
|
||||
'description' => $plugin_definition['title'],
|
||||
),
|
||||
);
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($toolkit->getRequirements() as $key => $requirement) {
|
||||
$namespaced_key = 'image.toolkit.' . $toolkit->getPluginId() . '.' . $key;
|
||||
|
@ -49,15 +49,22 @@ function image_requirements($phase) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
$requirements = array(
|
||||
'image.toolkit' => array(
|
||||
$requirements = [
|
||||
'image.toolkit' => [
|
||||
'title' => t('Image toolkit'),
|
||||
'value' => t('None'),
|
||||
'description' => t("No image toolkit is configured on the site. Check PHP installed extensions or add a contributed toolkit that doesn't require a PHP extension. Make sure that at least one valid image toolkit is enabled."),
|
||||
'severity' => REQUIREMENT_ERROR,
|
||||
),
|
||||
);
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
return $requirements;
|
||||
}
|
||||
|
||||
/**
|
||||
* Flush caches as we changed field formatter metadata.
|
||||
*/
|
||||
function image_update_8201() {
|
||||
// Empty update to trigger a cache flush.
|
||||
}
|
||||
|
|
Reference in a new issue