public function PrevNextHelper::loadBundle in Previous/Next API 8.2
Loads the Prev/next bundle configuration.
Parameters
string $bundle_name: Entity Type name.
Return value
\Drupal\Core\Config\ImmutableConfig A configuration object.
Overrides PrevNextHelperInterface::loadBundle
File
- src/
PrevNextHelper.php, line 55
Class
- PrevNextHelper
- Defines an PrevNextHelper service.
Namespace
Drupal\prev_nextCode
public function loadBundle($bundle_name) {
return $this->configFactory
->get('prev_next.node_type.' . $bundle_name);
}