public function PrevNextHelper::getBundleNames in Previous/Next API 8.2
Determine if connection should be refreshed.
Return value
array Returns the list of Node types.
Overrides PrevNextHelperInterface::getBundleNames
File
- src/
PrevNextHelper.php, line 43
Class
- PrevNextHelper
- Defines an PrevNextHelper service.
Namespace
Drupal\prev_nextCode
public function getBundleNames() {
$bundle_names = [];
foreach ($this->configFactory
->listAll('prev_next.node_type.') as $config) {
$contents = explode('.', $config);
$bundle_names[] = end($contents);
}
return $bundle_names;
}