examples-3.x-dev/modules/testing_example/src/DisplayInfoInterface.php
modules/testing_example/src/DisplayInfoInterface.php
<?php
namespace Drupal\testing_example;
/**
* 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.
*
* @ingroup testing_example
*/
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();
}
