interface FormComponentTypeInterface in Flexiform 8
Interface for form component type plugins.
Hierarchy
- interface \Drupal\flexiform\FormComponent\FormComponentTypeInterface
Expanded class hierarchy of FormComponentTypeInterface
All classes that implement FormComponentTypeInterface
File
- src/
FormComponent/ FormComponentTypeInterface.php, line 10
Namespace
Drupal\flexiform\FormComponentView source
interface FormComponentTypeInterface {
/**
* Get the form entity manager.
*
* @return \Drupal\flexiform\FormEntity\FlexiformFormEntityManager
* The form entity manager.
*/
public function getFormEntityManager();
/**
* Set the form display.
*
* @param \Drupal\flexiform\FlexiformEntityFormDisplay $form_display
* The form display.
*
* @return \Drupal\Flexiform\FormComponent\FormComponentTypeInterface
* The form component type plugin with the form display set.
*/
public function setFormDisplay(FlexiformEntityFormDisplay $form_display);
/**
* Get the form display.
*
* @return \Drupal\flexiform\FlexiformEntityFormDisplay
* The form display
*/
public function getFormDisplay();
/**
* Get a component object.
*
* @param string $name
* The name of the component.
* @param array $options
* The options for the component.
*
* @return \Drupal\flexiform\FormComponent\FormComponentInterface
* The form component.
*/
public function getComponent($name, array $options);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormComponentTypeInterface:: |
public | function | Get a component object. | 1 |
FormComponentTypeInterface:: |
public | function | Get the form display. | 1 |
FormComponentTypeInterface:: |
public | function | Get the form entity manager. | 1 |
FormComponentTypeInterface:: |
public | function | Set the form display. | 1 |