Unverified Commit 46c8fe7e authored by alexpott's avatar alexpott
Browse files

Issue #3111645 by bobbygryzynger, catch: Uninstall entity_reference module and...

Issue #3111645 by bobbygryzynger, catch: Uninstall entity_reference module and prevent it being enabled again, remove deprecated code
parent 88b76677
<?php
/**
* @file
* Entity Reference install functions.
*/
/**
* Implements hook_requirements().
*/
function entity_reference_requirements($phase) {
$requirements = [];
if ($phase === 'install') {
$requirements['entity_reference'] = [
'title' => t('Entity Reference: Deprecated'),
'description' => t('Entity Reference is deprecated, all functionality has been moved to Core.'),
'value' => \Drupal::VERSION,
'severity' => REQUIREMENT_ERROR,
];
}
return $requirements;
}
<?php
/**
* @file
* Deprecated. All its functionality has been moved to Core. This empty module
* will be removed in Drupal 9.0.x.
*/
<?php
namespace Drupal\entity_reference;
use Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem;
/**
* Deprecated. Alternative implementation of the 'entity_reference' field type.
*
* @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use
* \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem instead.
*
* @see \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem
*/
class ConfigurableEntityReferenceItem extends EntityReferenceItem {}
<?php
namespace Drupal\entity_reference\Plugin\views\display;
use Drupal\views\Plugin\views\display\EntityReference as ViewsEntityReference;
/**
* Deprecated. The plugin that handles an EntityReference display.
*
* @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use
* \Drupal\views\Plugin\views\display\EntityReference instead.
*
* @see \Drupal\views\Plugin\views\display\EntityReference
*/
class EntityReference extends ViewsEntityReference {}
<?php
namespace Drupal\entity_reference\Plugin\views\row;
use Drupal\views\Plugin\views\row\EntityReference as ViewsEntityReference;
/**
* EntityReference row plugin.
*
* @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use
* \Drupal\views\Plugin\views\row\EntityReference instead.
*
* @see \Drupal\views\Plugin\views\row\EntityReference
*/
class EntityReference extends ViewsEntityReference {}
<?php
namespace Drupal\entity_reference\Plugin\views\style;
use Drupal\views\Plugin\views\style\EntityReference as ViewsEntityReference;
/**
* Deprecated. EntityReference style plugin.
*
* @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use
* \Drupal\views\Plugin\views\style\EntityReference instead.
*
* @see \Drupal\views\Plugin\views\style\EntityReference
*/
class EntityReference extends ViewsEntityReference {}
......@@ -276,3 +276,12 @@ function system_post_update_entity_reference_autocomplete_match_limit(&$sandbox
function system_post_update_uninstall_simpletest() {
\Drupal::service('module_installer')->uninstall(['simpletest']);
}
/**
* Uninstall entity_reference.
*
* @see https://www.drupal.org/project/drupal/issues/3111645
*/
function system_post_update_uninstall_entity_reference_module() {
\Drupal::service('module_installer')->uninstall(['entity_reference']);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment