You are here

class EntityHelper in FillPDF 5.0.x

Same name and namespace in other branches
  1. 8.4 src/EntityHelper.php \Drupal\fillpdf\EntityHelper

Class EntityHelper.

@package Drupal\fillpdf

Hierarchy

Expanded class hierarchy of EntityHelper

Deprecated

in fillpdf:8.x-4.7 and is removed from fillpdf:8.x-5.0. Applies to this class and the 'fillpdf.entity_helper' service. The getFormFields() method lives within the FillPdfForm entity now.

See also

https://www.drupal.org/project/fillpdf/issues/3046257

\Drupal\fillpdf\Entity\FillPdfForm::getFormFields()

1 string reference to 'EntityHelper'
fillpdf.services.yml in ./fillpdf.services.yml
fillpdf.services.yml
1 service uses EntityHelper
fillpdf.entity_helper in ./fillpdf.services.yml
Drupal\fillpdf\EntityHelper

File

src/EntityHelper.php, line 15

Namespace

Drupal\fillpdf
View source
class EntityHelper implements EntityHelperInterface {

  /**
   * Gets all FillPdfFormFields associated with a FillPdfForm.
   *
   * @param \Drupal\fillpdf\FillPdfFormInterface $fillpdf_form
   *   The FillPdfForm.
   *
   * @return \Drupal\fillpdf\FillPdfFormFieldInterface[]
   *   Array of all associated FillPdfFormFields.
   */
  public function getFormFields(FillPdfFormInterface $fillpdf_form) {
    return $fillpdf_form
      ->getFormFields();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EntityHelper::getFormFields public function Gets all FillPdfFormFields associated with a FillPdfForm.