You are here

public function UserPasswordBlock::build in Form Block 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Block/UserPasswordBlock.php \Drupal\formblock\Plugin\Block\UserPasswordBlock::build()

Implements \Drupal\block\BlockBase::build().

Overrides BlockPluginInterface::build

File

src/Plugin/Block/UserPasswordBlock.php, line 63

Class

UserPasswordBlock
Provides a block for the password reset form.

Namespace

Drupal\formblock\Plugin\Block

Code

public function build() {
  $build = [];
  $build['form'] = $this->formBuilder
    ->getForm('Drupal\\user\\Form\\UserPasswordForm');
  return $build;
}