interface DsFieldTemplateInterface in Display Suite 8.2
Same name and namespace in other branches
- 8.4 src/Plugin/DsFieldTemplate/DsFieldTemplateInterface.php \Drupal\ds\Plugin\DsFieldTemplate\DsFieldTemplateInterface
- 8.3 src/Plugin/DsFieldTemplate/DsFieldTemplateInterface.php \Drupal\ds\Plugin\DsFieldTemplate\DsFieldTemplateInterface
Base class for all the ds plugins.
Hierarchy
- interface \Drupal\ds\Plugin\DsFieldTemplate\DsFieldTemplateInterface
Expanded class hierarchy of DsFieldTemplateInterface
All classes that implement DsFieldTemplateInterface
File
- src/
Plugin/ DsFieldTemplate/ DsFieldTemplateInterface.php, line 10
Namespace
Drupal\ds\Plugin\DsFieldTemplateView source
interface DsFieldTemplateInterface {
/**
* Lets you add you add additional form element for your layout.
*/
public function alterForm(&$form);
/**
* Gets the entity this layout belongs too.
*/
public function getEntity();
/**
* Sets the entity this layout belong too.
*/
public function setEntity(EntityInterface $entity);
/**
* Massages the values before they get rendered.
*/
public function massageRenderValues(&$field_settings, $values);
/**
* Gets the chosen theme function.
*/
public function getThemeFunction();
/**
* Creates default configuration for the layout.
*/
public function defaultConfiguration();
/**
* Get the selected configuration.
*/
public function getConfiguration();
/**
* Set the configuration for this layout.
*/
public function setConfiguration(array $configuration);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DsFieldTemplateInterface:: |
public | function | Lets you add you add additional form element for your layout. | 1 |
DsFieldTemplateInterface:: |
public | function | Creates default configuration for the layout. | 1 |
DsFieldTemplateInterface:: |
public | function | Get the selected configuration. | 1 |
DsFieldTemplateInterface:: |
public | function | Gets the entity this layout belongs too. | 1 |
DsFieldTemplateInterface:: |
public | function | Gets the chosen theme function. | 1 |
DsFieldTemplateInterface:: |
public | function | Massages the values before they get rendered. | 1 |
DsFieldTemplateInterface:: |
public | function | Set the configuration for this layout. | 1 |
DsFieldTemplateInterface:: |
public | function | Sets the entity this layout belong too. | 1 |