public function BlazyAdminBase::closingForm in Blazy 8
Same name and namespace in other branches
- 8.2 src/Form/BlazyAdminBase.php \Drupal\blazy\Form\BlazyAdminBase::closingForm()
- 7 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/
Dejavu/ 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/
Dejavu/ BlazyAdminExtended.php - Returns shared ending form elements across field formatter and Views.
File
- src/
Form/ BlazyAdminBase.php, line 368
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 = []) {
if (isset($definition['current_view_mode'])) {
$form['current_view_mode'] = [
'#type' => 'hidden',
'#default_value' => isset($definition['current_view_mode']) ? $definition['current_view_mode'] : '_custom',
'#weight' => 120,
];
}
$this
->finalizeForm($form, $definition);
}