W3cubDocs

/Drupal 8

public function DateFormatInterface::getPattern

public DateFormatInterface::getPattern()

Gets the date pattern string for this format.

Return value

string The pattern string as expected by date().

File

core/lib/Drupal/Core/Datetime/DateFormatInterface.php, line 18

Class

DateFormatInterface
Provides an interface defining a date format.

Namespace

Drupal\Core\Datetime

Code

public function getPattern();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Datetime!DateFormatInterface.php/function/DateFormatInterface::getPattern/8.1.x