public function BlazyAdminBase::closingForm in Blazy 7
Same name and namespace in other branches
- 8.2 src/Form/BlazyAdminBase.php \Drupal\blazy\Form\BlazyAdminBase::closingForm()
- 8 src/Form/BlazyAdminBase.php \Drupal\blazy\Form\BlazyAdminBase::closingForm()
Returns shared ending form elements across field formatter and Views.
2 calls to BlazyAdminBase::closingForm()
- BlazyAdminExtended::closingForm in src/
Form/ BlazyAdminExtended.php - Returns shared ending form elements across field formatter and Views.
- BlazyAdminFormatter::buildSettingsForm in src/
Form/ BlazyAdminFormatter.php - Defines re-usable form elements.
1 method overrides BlazyAdminBase::closingForm()
- BlazyAdminExtended::closingForm in src/
Form/ BlazyAdminExtended.php - Returns shared ending form elements across field formatter and Views.
File
- src/
Form/ BlazyAdminBase.php, line 334
Class
- BlazyAdminBase
- A base for blazy admin integration to have re-usable methods in one place.
Namespace
Drupal\blazy\FormCode
public function closingForm(array &$form, $definition = []) {
$form['current_view_mode'] = [
'#type' => 'hidden',
'#default_value' => isset($definition['settings']['current_view_mode']) ? $definition['settings']['current_view_mode'] : 'default',
'#weight' => 120,
];
$this
->finalizeForm($form, $definition);
}