summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src
diff options
context:
space:
mode:
authorxjm2017-12-06 19:18:33 (GMT)
committerxjm2017-12-06 19:18:33 (GMT)
commita4dd446ee9c3f5abc1f9dec12dc396a6f6c39107 (patch)
tree88d4126a764e72c0a16f496cddb1965fe47c90d0 /core/modules/node/src
parent04dccf9472b48b14c0d8fa2c32442470291a9298 (diff)
Issue #2895001 by marcoscano, vijaycs85, Wim Leers, benjifisher, xjm, Berdir, amateescu: Use the bundle label (e.g. "Media type") instead of "Bundles" in the Entity Reference field configuration
Diffstat (limited to 'core/modules/node/src')
-rw-r--r--core/modules/node/src/Plugin/EntityReferenceSelection/NodeSelection.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/modules/node/src/Plugin/EntityReferenceSelection/NodeSelection.php b/core/modules/node/src/Plugin/EntityReferenceSelection/NodeSelection.php
index 906f15f..2f26393 100644
--- a/core/modules/node/src/Plugin/EntityReferenceSelection/NodeSelection.php
+++ b/core/modules/node/src/Plugin/EntityReferenceSelection/NodeSelection.php
@@ -3,7 +3,6 @@
namespace Drupal\node\Plugin\EntityReferenceSelection;
use Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection;
-use Drupal\Core\Form\FormStateInterface;
use Drupal\node\NodeInterface;
/**
@@ -22,15 +21,6 @@ class NodeSelection extends DefaultSelection {
/**
* {@inheritdoc}
*/
- public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
- $form = parent::buildConfigurationForm($form, $form_state);
- $form['target_bundles']['#title'] = $this->t('Content types');
- return $form;
- }
-
- /**
- * {@inheritdoc}
- */
protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {
$query = parent::buildEntityQuery($match, $match_operator);
// Adding the 'node_access' tag is sadly insufficient for nodes: core