Skip to content
Snippets Groups Projects
Commit db47b729 authored by Eugene Kubovsky's avatar Eugene Kubovsky
Browse files

Issue #3446940: Fixes error accurring on Views VBO actions.

parent 618ccfa3
Branches
Tags
1 merge request!3Issue #3446940: Fixes error accurring on Views VBO actions.
.idea/
\ No newline at end of file
......@@ -9,6 +9,6 @@
}
],
"require": {
"drupal/pluginformalter": "^1.0"
"drupal/pluginformalter": "^1.7"
}
}
......@@ -58,7 +58,7 @@ class EntityOptionsWidget extends WidgetBase {
* {@inheritdoc}
*/
public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
$entity = $form_state->getFormObject()->getEntity();
$entity = $items->getEntity();
if ($entity->getEntityType()->hasKey('bundle')) {
$type = $entity->get($entity->getEntityType()->getKey('bundle'))->entity;
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment