You are here

public function FillPdfFormFieldStorage::hasData in FillPDF 5.0.x

Same name and namespace in other branches
  1. 8.4 src/FillPdfFormFieldStorage.php \Drupal\fillpdf\FillPdfFormFieldStorage::hasData()

Determines if the storage contains any data.

Return value

bool TRUE if the storage contains data, FALSE if not.

Overrides EntityStorageBase::hasData

File

src/FillPdfFormFieldStorage.php, line 18

Class

FillPdfFormFieldStorage
Defines a custom storage handler for FillPdfFormFields.

Namespace

Drupal\fillpdf

Code

public function hasData() {

  // Announce having data only if there are orphan FillPdfFormFields after
  // all FillPdfForms are deleted.
  return $this->entityTypeManager
    ->getStorage('fillpdf_form')
    ->hasData() ? FALSE : parent::hasData();
}