function SimpleFormBlock::create
Same name in other branches
- 3.x modules/form_api_example/src/Plugin/Block/SimpleFormBlock.php \Drupal\form_api_example\Plugin\Block\SimpleFormBlock::create()
- 4.0.x modules/form_api_example/src/Plugin/Block/SimpleFormBlock.php \Drupal\form_api_example\Plugin\Block\SimpleFormBlock::create()
File
-
form_api_example/
src/ Plugin/ Block/ SimpleFormBlock.php, line 43
Class
- SimpleFormBlock
- Provides a 'Example: Display a form' block.
Namespace
Drupal\form_api_example\Plugin\BlockCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('form_builder'));
}