protected function FormBase::logger in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::logger()
- 9 core/lib/Drupal/Core/Form/FormBase.php \Drupal\Core\Form\FormBase::logger()
Gets the logger for a specific channel.
This method exists for backward-compatibility between FormBase and LoggerChannelTrait. Use LoggerChannelTrait::getLogger() instead.
Parameters
string $channel: The name of the channel. Can be any string, but the general practice is to use the name of the subsystem calling this.
Return value
\Psr\Log\LoggerInterface The logger for the given channel.
24 calls to FormBase::logger()
- BanDelete::submitForm in core/
modules/ ban/ src/ Form/ BanDelete.php - Form submission handler.
- BlockContentForm::save in core/
modules/ block_content/ src/ BlockContentForm.php - Form submission handler for the 'save' action.
- BookAdminEditForm::submitForm in core/
modules/ book/ src/ Form/ BookAdminEditForm.php - Form submission handler.
- CommentForm::save in core/
modules/ comment/ src/ CommentForm.php - Form submission handler for the 'save' action.
- ContactFormEditForm::save in core/
modules/ contact/ src/ ContactFormEditForm.php - Form submission handler for the 'save' action.
File
- core/
lib/ Drupal/ Core/ Form/ FormBase.php, line 244
Class
- FormBase
- Provides a base class for forms.
Namespace
Drupal\Core\FormCode
protected function logger($channel) {
return $this
->getLogger($channel);
}