ConfigPagesInterface.php in Config Pages 8.2
Same filename and directory in other branches
Namespace
Drupal\config_pagesFile
src/ConfigPagesInterface.phpView source
<?php
namespace Drupal\config_pages;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
/**
* Provides an interface defining a custom config page entity.
*/
interface ConfigPagesInterface extends ContentEntityInterface, EntityChangedInterface {
/**
* Sets the config page description.
*
* @param string $label
* The config page description.
*
* @return \Drupal\config_pages\ConfigPagesInterface
* The class instance that this method is called on.
*/
public function setLabel($label);
/**
* Sets the theme value.
*
* When creating a new config page content config page from the config page
* library, the user is redirected to the configure form for that config page
* in the given theme. The theme is stored against the config page when the
* config page content add form is shown.
*
* @param string $theme
* The theme name.
*
* @return \Drupal\config_pages\ConfigPagesInterface
* The class instance that this method is called on.
*/
public function setTheme($theme);
/**
* Gets the theme value.
*
* When creating a new config page content config page from the config page
* library, the user is redirected to the configure form for that config page
* in the given theme. The theme is stored against the config page when the
* config page content add form is shown.
*
* @return string
* The theme name.
*/
public function getTheme();
}
Interfaces
Name![]() |
Description |
---|---|
ConfigPagesInterface | Provides an interface defining a custom config page entity. |