W3cubDocs

/Drupal 8

protected function EntityDisplayBase::getLogger

protected EntityDisplayBase::getLogger()

Provides the 'system' channel logger service.

Return value

\Psr\Log\LoggerInterface The 'system' channel logger.

File

core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 544

Class

EntityDisplayBase
Provides a common base class for entity view and form displays.

Namespace

Drupal\Core\Entity

Code

protected function getLogger() {
  return \Drupal::logger('system');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityDisplayBase.php/function/EntityDisplayBase::getLogger/8.1.x