Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / entity_browser / src / Plugin / views / field / SearchApiSelectForm.php
1 <?php
2
3 namespace Drupal\entity_browser\Plugin\views\field;
4
5 use Drupal\views\ResultRow;
6
7 /**
8  * Defines a bulk operation form element that works with entity browser.
9  *
10  * @ViewsField("entity_browser_search_api_select")
11  */
12 class SearchApiSelectForm extends SelectForm {
13
14   /**
15    * {@inheritdoc}
16    */
17   public function getRowId(ResultRow $row) {
18     $entity = $row->_object->getValue();
19     return $entity->getEntityTypeId() . ':' . $entity->id();
20   }
21
22 }