public function SearchApiSelectForm::getRowId in Entity Browser 8.2
Same name and namespace in other branches
- 8 src/Plugin/views/field/SearchApiSelectForm.php \Drupal\entity_browser\Plugin\views\field\SearchApiSelectForm::getRowId()
Returns the ID for a result row.
Parameters
\Drupal\views\ResultRow $row: The result row.
Return value
string The row ID, in the form ENTITY_TYPE:ENTITY_ID.
Overrides SelectForm::getRowId
File
- src/
Plugin/ views/ field/ SearchApiSelectForm.php, line 17
Class
- SearchApiSelectForm
- Defines a bulk operation form element that works with entity browser.
Namespace
Drupal\entity_browser\Plugin\views\fieldCode
public function getRowId(ResultRow $row) {
$entity = $row->_object
->getValue();
return $entity
->getEntityTypeId() . ':' . $entity
->id();
}