diff --git a/src/Plugin/EntityBrowser/Widget/View.php b/src/Plugin/EntityBrowser/Widget/View.php index 51b7ba2..39bc5df 100644 --- a/src/Plugin/EntityBrowser/Widget/View.php +++ b/src/Plugin/EntityBrowser/Widget/View.php @@ -113,20 +113,6 @@ class View extends WidgetBase implements ContainerFactoryPluginInterface { $form['view'] = $view->executeDisplay($this->configuration['view_display']); - if (empty($view->field['entity_browser_select'])) { - $url = Url::fromRoute('entity.view.edit_form', ['view' => $this->configuration['view']])->toString(); - if ($this->currentUser->hasPermission('administer views')) { - return [ - '#markup' => $this->t('Entity browser select form field not found on a view. Go fix it!', [':link' => $url]), - ]; - } - else { - return [ - '#markup' => $this->t('Entity browser select form field not found on a view. Go fix it!'), - ]; - } - } - // When rebuilding makes no sense to keep checkboxes that were previously // selected. if (!empty($form['view']['entity_browser_select'])) {