3 namespace Drupal\Core\Datetime;
5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
8 * Provides an interface defining a date format.
10 interface DateFormatInterface extends ConfigEntityInterface {
13 * Gets the date pattern string for this format.
16 * The pattern string as expected by date().
18 public function getPattern();
21 * Sets the date pattern for this format.
23 * @param string $pattern
24 * The date pattern to use for this format.
28 public function setPattern($pattern);
31 * Determines if this date format is locked.
34 * TRUE if the date format is locked, FALSE otherwise.
36 public function isLocked();