You are here

protected function DefaultContentManager::scanner in Default Content 8

Utility to get a default content scanner

Return value

\Drupal\defaultcontent\DefaultContentScanner A system listing implementation.

File

src/DefaultContentManager.php, line 237
Contains \Drupal\defaultcontent\DefaultContentManager. @todo remove all references to linkmanager?

Class

DefaultContentManager
A service for handling import of default content. @todo throw useful exceptions

Namespace

Drupal\defaultcontent

Code

protected function scanner() {
  if ($this->scanner) {
    return $this->scanner;
  }
  return new DefaultContentScanner();
}