You are here

protected function Fz152ContactSettings::getContactBundles 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()

3 calls to Fz152ContactSettings::getContactBundles()
Fz152ContactSettings::buildForm in modules/contact/src/Form/Fz152ContactSettings.php
Form constructor.
Fz152ContactSettings::getEditableConfigNames in modules/contact/src/Form/Fz152ContactSettings.php
Gets the configuration names that will be editable.
Fz152ContactSettings::submitForm in modules/contact/src/Form/Fz152ContactSettings.php
Form submission handler.

File

modules/contact/src/Form/Fz152ContactSettings.php, line 57

Class

Fz152ContactSettings
Configure example settings for this site.

Namespace

Drupal\fz152_contact\Form

Code

protected function getContactBundles() {
  return $this->bundleInfo
    ->getBundleInfo('contact_message');
}