Actions
class Actions
Provides a wrapper element to group one or more buttons in a form.
Use of a single Actions element with an array key of 'actions' to group the primary submit buttons on a form helps to ensure proper styling in themes, and enables other modules to properly alter a form's actions.
Usage example:
$form['actions'] = array('#type' => 'actions'); $form['actions']['submit'] = array( '#type' => 'submit', '#value' => $this->t('Save'), );
Plugin annotation
@RenderElement("actions")
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements 登录查看完整内容