public DateFormatFormBase::exists($entity_id, array $element)
Checks for an existing date format.
Parameters
string|int $entity_id: The entity ID.
array $element: The form element.
Return value
bool TRUE if this format already exists, FALSE otherwise.
File
core/modules/system/src/Form/DateFormatFormBase.php, line 68
Class
DateFormatFormBase Provides a base form for date formats.
Namespace
Drupal\system\Form
Code
public function exists($entity_id, array $element) {
return (bool) $th