protected function NodeTitle::getAllowedNodeTypes in Freelinking 8.3
Same name and namespace in other branches
- 4.0.x src/Plugin/freelinking/NodeTitle.php \Drupal\freelinking\Plugin\freelinking\NodeTitle::getAllowedNodeTypes()
Get the allowed node types from configuration.
Return value
array An indexed array of node types.
1 call to NodeTitle::getAllowedNodeTypes()
- NodeTitle::getQuery in src/
Plugin/ freelinking/ NodeTitle.php - Get the node query builder.
File
- src/
Plugin/ freelinking/ NodeTitle.php, line 200
Class
- NodeTitle
- Node Title freelinking plugin.
Namespace
Drupal\freelinking\Plugin\freelinkingCode
protected function getAllowedNodeTypes() {
$node_types = $this->configuration['settings']['nodetypes'];
return array_reduce($node_types, function (&$result, $item) {
if ($item) {
$result[] = $item;
}
return $result;
}, []);
}