public function VocabularyForm::form in Taxonomy Breadcrumb 8
Override Drupal\Core\Config\Entity\ConfigEntityListBuilder::load().
Overrides VocabularyForm::form
File
- src/
VocabularyForm.php, line 46
Class
- VocabularyForm
- Class VocabularyListBuilder.
Namespace
Drupal\taxonomy_breadcrumbCode
public function form(array $form, FormStateInterface $form_state) {
$vocabulary = $this->entity;
$form['third_party_settings']['taxonomy_breadcrumb_path'] = array(
'#type' => 'textfield',
'#title' => t('Breadcrumb path (taxonomy_breadcrumb)'),
'#default_value' => $vocabulary
->getThirdPartySetting('taxonomy_breadcrumb', 'taxonomy_breadcrumb_path'),
'#maxlength' => 128,
'#description' => t("Specify the path this vocabulary links to as a breadcrumb. If blank, the breadcrumb will not appear. Use a relative path and don't add a trailing slash. For example: node/42 or my/path/alias."),
);
$form = parent::form($form, $form_state);
return $form;
}