You are here

public function SelectForm::getRowId in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/field/SelectForm.php \Drupal\entity_browser\Plugin\views\field\SelectForm::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.

2 calls to SelectForm::getRowId()
SelectForm::render in src/Plugin/views/field/SelectForm.php
Renders the field.
SelectForm::viewsForm in src/Plugin/views/field/SelectForm.php
Form constructor for the bulk form.
1 method overrides SelectForm::getRowId()
SearchApiSelectForm::getRowId in src/Plugin/views/field/SearchApiSelectForm.php
Returns the ID for a result row.

File

src/Plugin/views/field/SelectForm.php, line 103

Class

SelectForm
Defines a bulk operation form element that works with entity browser.

Namespace

Drupal\entity_browser\Plugin\views\field

Code

public function getRowId(ResultRow $row) {
  $entity = $this
    ->getEntity($row);
  return $entity
    ->getEntityTypeId() . ':' . $entity
    ->id();
}