meet-third-party-settings-interface



meet-third-party-settings-interface

0 2


meet-third-party-settings-interface

Preso about ThirdPartySettingsInterface

On Github larowlan / meet-third-party-settings-interface

Drupal

Third Party Settings Interface

Lee Rowlands

larowlan@previousnext.com.au

@larowlan

What?

  • ThirdPartySettingsInterface is your window to weight gain success other module's config entities

Drupal 7

Drupal 7

Drupal 7

  • Array PIs

Drupal 8

  • Config entities

Drupal 8

  • Defined interfaces $contact_form->getRecipients();
  • 1:N of something

Drupal 8

  • Config schema
  • validates
  • translations
  • governs what is written

Drupal 8

  • Extension point - third party settings interface
  • \Drupal\Core\Config\Entity\ThirdPartySettingsInterface

Drupal 8

  • As an owner - Drupal\Core\Config\Entity\ThirdPartySettingsTrait

Drupal 8

  • Config schema entry

Drupal 8

  • As a consumer - define config for your stuff

Drupal 8

  • form alter your fields into the form

Drupal 8

  • Sample code - see contact module and contact_storage_test module in core.

Questions?

Thank you!

larowlan@previousnext.com.au

@larowlan