interface DisplayInfoInterface
Same name in other branches
- 8.x-1.x phpunit_example/src/DisplayInfoInterface.php \Drupal\phpunit_example\DisplayInfoInterface
- 4.0.x modules/phpunit_example/src/DisplayInfoInterface.php \Drupal\phpunit_example\DisplayInfoInterface
An interface to objects that provide displayable information.
Part of the PHPUnit Example module. This interface exists so that we can demonstrate using an interface in testing.
This interface as representing objects that can return some sort of display information, such as .info.yml file.
Hierarchy
- interface \Drupal\phpunit_example\DisplayInfoInterface
Expanded class hierarchy of DisplayInfoInterface
All classes that implement DisplayInfoInterface
Related topics
1 file declares its use of DisplayInfoInterface
- DisplayManagerTest.php in modules/
phpunit_example/ tests/ src/ Unit/ DisplayManagerTest.php
File
-
modules/
phpunit_example/ src/ DisplayInfoInterface.php, line 16
Namespace
Drupal\phpunit_exampleView source
interface DisplayInfoInterface {
/**
* Get displayable name.
*
* @returns string
* The display name for the item this object represents.
*/
public function getDisplayName();
/**
* Get displayable description.
*
* @returns string
* The displayable description for the item this object represents.
*/
public function getDisplayDescription();
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
DisplayInfoInterface::getDisplayDescription | public | function | Get displayable description. |
DisplayInfoInterface::getDisplayName | public | function | Get displayable name. |