Unverified Commit 46c8fe7e authored by Alex Pott's avatar Alex Pott
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
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
<?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;

}
+0 −7
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Deprecated. All its functionality has been moved to Core. This empty module
 * will be removed in Drupal 9.0.x.
 */
+0 −15
Original line number Diff line number Diff line
<?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 {}
+0 −15
Original line number Diff line number Diff line
<?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 {}
+0 −15
Original line number Diff line number Diff line
<?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 {}
Loading