public function LingotekElementInfoAlterForm::type in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8.2 src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
- 4.0.x src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
- 3.0.x src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
- 3.1.x src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
- 3.2.x src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
- 3.3.x src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
- 3.5.x src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
- 3.6.x src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
- 3.7.x src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
- 3.8.x src/Form/LingotekElementInfoAlterForm.php \Drupal\lingotek\Form\LingotekElementInfoAlterForm::type()
Add a process when element info is altered
File
- src/
Form/ LingotekElementInfoAlterForm.php, line 92
Class
- LingotekElementInfoAlterForm
- Adds the option to use Lingotek to translate content entities
Namespace
Drupal\lingotek\FormCode
public function type(&$type) {
if (isset($type['language_configuration'])) {
$type['language_configuration']['#process'][] = [
$this,
'process',
];
}
}