You are here

abstract function LinkGeneratorBase::get_paths in Simple XML sitemap 8

Returns an array of all urls and their data of a bundle.

@abstract

Parameters

string $bundle: Machine name of the bundle, eg. 'page'.

Return value

array $paths A numeric array of Drupal internal path data sets containing the internal path, url objects for every language (optional), lastmod (optional) and priority (optional):

array( 0 => array( 'path_data' => array( 'path' => '/relative/path/to/drupal/page', 'urls' => array( //optional 'en' => Drupal\Core\Url, 'de' => Drupal\Core\Url, ), ), 'priority' => 0.5 // optional 'lastmod' => '1234567890' // optional: content changed unix date ), )

1 call to LinkGeneratorBase::get_paths()
LinkGeneratorBase::get_entity_paths in src/LinkGeneratorBase.php
5 methods override LinkGeneratorBase::get_paths()
CustomLinkGenerator::get_paths in src/CustomLinkGenerator.php
Returns an array of all urls of the custom paths.
Menu::get_paths in src/Plugin/LinkGenerator/Menu.php
Returns an array of all urls and their data of a bundle.
NodeType::get_paths in src/Plugin/LinkGenerator/NodeType.php
Returns an array of all urls and their data of a bundle.
TaxonomyVocabulary::get_paths in src/Plugin/LinkGenerator/TaxonomyVocabulary.php
Returns an array of all urls and their data of a bundle.
User::get_paths in src/Plugin/LinkGenerator/User.php
Returns an array of all urls and their data of a bundle.

File

src/LinkGeneratorBase.php, line 125
Contains \Drupal\simplesitemap\LinkGeneratorBase.

Class

LinkGeneratorBase

Namespace

Drupal\simplesitemap

Code

abstract function get_paths($bundle);