public function NodeOrderManager::__construct in Node Order 8
Constructs a NodeOrderManager object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Cache\CacheBackendInterface $cache: Default cache bin.
File
- src/
NodeOrderManager.php, line 48
Class
- NodeOrderManager
- Defines a service that creates & manages node ordering within taxonomy terms.
Namespace
Drupal\nodeorderCode
public function __construct(ConfigFactoryInterface $config_factory, EntityManagerInterface $entity_manager, CacheBackendInterface $cache) {
$this->configFactory = $config_factory;
$this->termStorage = $entity_manager
->getStorage('taxonomy_term');
$this->cache = $cache;
}