comparison core/lib/Drupal/Core/Controller/ControllerBase.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents c2387f117808
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
127 * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. 127 * @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
128 * Most of the time static::entityTypeManager() is supposed to be used 128 * Most of the time static::entityTypeManager() is supposed to be used
129 * instead. 129 * instead.
130 */ 130 */
131 protected function entityManager() { 131 protected function entityManager() {
132 @trigger_error('ControllerBase::getEntityManager() is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. Use ::getEntityTypeManager() instead. See https://www.drupal.org/node/2549139.', E_USER_DEPRECATED);
132 if (!$this->entityManager) { 133 if (!$this->entityManager) {
133 $this->entityManager = $this->container()->get('entity.manager'); 134 $this->entityManager = $this->container()->get('entity.manager');
134 } 135 }
135 return $this->entityManager; 136 return $this->entityManager;
136 } 137 }