Mercurial > hg > isophonics-drupal-site
comparison core/modules/node/src/Plugin/EntityReferenceSelection/NodeSelection.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\node\Plugin\EntityReferenceSelection; | 3 namespace Drupal\node\Plugin\EntityReferenceSelection; |
4 | 4 |
5 use Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection; | 5 use Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection; |
6 use Drupal\Core\Form\FormStateInterface; | |
7 use Drupal\node\NodeInterface; | 6 use Drupal\node\NodeInterface; |
8 | 7 |
9 /** | 8 /** |
10 * Provides specific access control for the node entity type. | 9 * Provides specific access control for the node entity type. |
11 * | 10 * |
16 * group = "default", | 15 * group = "default", |
17 * weight = 1 | 16 * weight = 1 |
18 * ) | 17 * ) |
19 */ | 18 */ |
20 class NodeSelection extends DefaultSelection { | 19 class NodeSelection extends DefaultSelection { |
21 | |
22 /** | |
23 * {@inheritdoc} | |
24 */ | |
25 public function buildConfigurationForm(array $form, FormStateInterface $form_state) { | |
26 $form = parent::buildConfigurationForm($form, $form_state); | |
27 $form['target_bundles']['#title'] = $this->t('Content types'); | |
28 return $form; | |
29 } | |
30 | 20 |
31 /** | 21 /** |
32 * {@inheritdoc} | 22 * {@inheritdoc} |
33 */ | 23 */ |
34 protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') { | 24 protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') { |