public function BlazyEntityBase::getScopedFormElements in Blazy 8.2
Same name and namespace in other branches
- 8 src/Dejavu/BlazyEntityBase.php \Drupal\blazy\Dejavu\BlazyEntityBase::getScopedFormElements()
Defines the scope for the form elements.
2 calls to BlazyEntityBase::getScopedFormElements()
- BlazyEntityBase::settingsForm in src/
Dejavu/ BlazyEntityBase.php - Returns a form to configure settings for the formatter.
- BlazyEntityMediaBase::getScopedFormElements in src/
Dejavu/ BlazyEntityMediaBase.php - Defines the scope for the form elements.
1 method overrides BlazyEntityBase::getScopedFormElements()
- BlazyEntityMediaBase::getScopedFormElements in src/
Dejavu/ BlazyEntityMediaBase.php - Defines the scope for the form elements.
File
- src/
Dejavu/ BlazyEntityBase.php, line 93
Class
- BlazyEntityBase
- Base class for entity reference formatters without field details.
Namespace
Drupal\blazy\DejavuCode
public function getScopedFormElements() {
$views_ui = $this
->getFieldSetting('handler') == 'default';
$bundles = $views_ui ? [] : $this
->getFieldSetting('handler_settings')['target_bundles'];
// @todo move common/ reusable properties somewhere.
return [
'settings' => $this
->getSettings(),
'target_bundles' => $bundles,
'view_mode' => $this->viewMode,
] + $this
->getCommonFieldDefinition();
}