You are here

protected function Contact::getContactForms in FZ152 8

Returns a list of contact forms.

Return value

array A keyed array of contact forms.

See also

\Drupal\Core\Entity\EntityTypeBundleInfoInterface::getBundleInfo()

1 call to Contact::getContactForms()
Contact::getForms in modules/contact/src/Plugin/Fz152/Contact.php
Returns a list of form to and confirmation for sending private data.

File

modules/contact/src/Plugin/Fz152/Contact.php, line 62

Class

Contact
Provides an annotated Fz152 plugin to configure contact form.

Namespace

Drupal\fz152_contact\Plugin\Fz152

Code

protected function getContactForms() {

  /** @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo */
  $bundleInfo = \Drupal::service('entity_type.bundle.info');
  return $bundleInfo
    ->getBundleInfo('contact_message');
}