You are here

public function FeedImportController::getTitle in Feed Import 8

Returns the name from a feed ID.

Parameters

string: The machine name for a feed.

Return value

string The human friendly name of a feed.

1 string reference to 'FeedImportController::getTitle'
feed_import.routing.yml in ./feed_import.routing.yml
feed_import.routing.yml

File

src/Controller/FeedImportController.php, line 95
Contains \Drupal\feed_import\Controller\FeedImportController.

Class

FeedImportController
Controller routines for feed_import routes.

Namespace

Drupal\feed_import\Controller

Code

public function getTitle($feed_importer) {
  if ($feed_importer) {
    return $feed_importer
      ->label();
  }
  return 'Feed Import';
}