Skip to content
Snippets Groups Projects
Commit a572d363 authored by Ken Rickard's avatar Ken Rickard
Browse files

Issue #3450485 by agentrickard, dqd, davidwhthomas, amitvin: WSOD Undefined...

Issue #3450485 by agentrickard, dqd, davidwhthomas, amitvin: WSOD Undefined method Drupal\domain\DomainListBuilder::formBuilder
parent 2bc52188
No related branches found
Tags 1.0.0-alpha19
No related merge requests found
Pipeline #210971 passed with warnings
......@@ -80,6 +80,13 @@ class DomainListBuilder extends DraggableListBuilder {
*/
protected $userStorage;
/**
* The form builder.
*
* @var \Drupal\Core\Form\FormBuilderInterface
*/
protected $formBuilder;
/**
* {@inheritdoc}
*/
......@@ -127,6 +134,9 @@ class DomainListBuilder extends DraggableListBuilder {
$this->userStorage = $this->entityTypeManager->getStorage('user');
// DraggableListBuilder sets this to FALSE, which cancels any pagination.
$this->limit = 50;
// Do not inject the form builder for backwards-compatibility.
$this->formBuilder = \Drupal::formBuilder();
}
/**
......@@ -315,7 +325,7 @@ class DomainListBuilder extends DraggableListBuilder {
*/
public function render() {
// Build the default form, which includes weights.
$form = $this->formBuilder()->getForm($this);
$form = $this->formBuilder->getForm($this);
// Only add the pager if a limit is specified.
if ($this->limit) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment