LinkGeneratorInterface.php 530 Bytes
Newer Older
1 2 3
<?php
/**
 * @file
4
 * Contains Drupal\simplesitemap\LinkGeneratorInterface.
5 6 7 8 9 10 11 12 13 14 15 16 17
 */

namespace Drupal\simplesitemap;

use Drupal\Component\Plugin\PluginInspectionInterface;

/**
 * Defines an interface for simplesitemap plugins.
 */

interface LinkGeneratorInterface extends PluginInspectionInterface {

  /**
18 19 20 21
   * @param string $entity_type
   *  E.g. 'node_type', 'taxonomy_vocabulary'.
   * @param array $bundles
   *  E.g. 'page'.
22
   *
23
   * @return array $paths
24
   */
25
  public function get_entity_paths($entity_type, $bundles);
26
}