- $this->setCacheBackend($cache_backend, 'layout');
- $this->alterInfo('layout');
+ $type = $this->getType();
+ $this->setCacheBackend($cache_backend, $type);
+ $this->alterInfo($type);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function getType() {
+ return 'layout';