interface SitemapInterface in Sitemap 8.2
Same name and namespace in other branches
- 2.0.x src/SitemapInterface.php \Drupal\sitemap\SitemapInterface
Interface definition for sitemap plugins.
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\sitemap\SitemapInterface
Expanded class hierarchy of SitemapInterface
All classes that implement SitemapInterface
File
- src/
SitemapInterface.php, line 15
Namespace
Drupal\sitemapView source
interface SitemapInterface extends ConfigurableInterface, DependentPluginInterface, PluginInspectionInterface {
/**
* Returns a form to configure settings for the mapping.
*
* @param array $form
* The form where the settings form is being included in.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return array
* The form elements for the sitemap_map's settings.
*/
public function settingsForm(array $form, FormStateInterface $form_state);
/**
* Returns a short summary for the current mapping settings.
*
* If an empty result is returned, a UI can still be provided to display
* a settings form in case the mapping has configurable settings.
*
* @return string[]
* A short summary of the mapping settings.
*/
public function settingsSummary();
/**
* Builds a renderable array for a sitemap item.
*
* @return array
* A renderable array for a themed field with its label and all its values.
*/
public function view();
/**
* Returns the administrative label for this mapping plugin.
*
* @return string
* The label.
*/
public function getLabel();
/**
* Returns the administrative description for this mapping plugin.
*
* @return string
* The description.
*/
public function getDescription();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
SitemapInterface:: |
public | function | Returns the administrative description for this mapping plugin. | 1 |
SitemapInterface:: |
public | function | Returns the administrative label for this mapping plugin. | 1 |
SitemapInterface:: |
public | function | Returns a form to configure settings for the mapping. | 1 |
SitemapInterface:: |
public | function | Returns a short summary for the current mapping settings. | 1 |
SitemapInterface:: |
public | function | Builds a renderable array for a sitemap item. | 4 |