protected FormBase::logger($channel)
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.
File
- core/lib/Drupal/Core/Form/FormBase.php, line 223
Class
- FormBase
- Provides a base class for forms.
Namespace
Drupal\Core\Form
Code
protected function logger($channel) { return $this->getLogger($channel); }
Please login to continue.