function SimpleFormBlock::create
Same name in other branches
- 4.0.x modules/form_api_example/src/Plugin/Block/SimpleFormBlock.php \Drupal\form_api_example\Plugin\Block\SimpleFormBlock::create()
Overrides ContainerFactoryPluginInterface::create
File
-
modules/
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'));
}